public static final class Workload.Builder extends GeneratedMessageV3.Builder<Workload.Builder> implements WorkloadOrBuilder
Contains metadata around the Workload resource in the Assured Workloads API.
Protobuf type google.cloud.cloudcontrolspartner.v1.Workload
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Workload.BuilderImplements
WorkloadOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Workload.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Workload.Builder |
build()
public Workload build()
Returns | |
---|---|
Type | Description |
Workload |
buildPartial()
public Workload buildPartial()
Returns | |
---|---|
Type | Description |
Workload |
clear()
public Workload.Builder clear()
Returns | |
---|---|
Type | Description |
Workload.Builder |
clearCreateTime()
public Workload.Builder clearCreateTime()
Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Workload.Builder |
clearField(Descriptors.FieldDescriptor field)
public Workload.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Workload.Builder |
clearFolder()
public Workload.Builder clearFolder()
Output only. The name of container folder of the assured workload
string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
clearFolderId()
public Workload.Builder clearFolderId()
Output only. Folder id this workload is associated with
int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
clearIsOnboarded()
public Workload.Builder clearIsOnboarded()
Indicates whether a workload is fully onboarded.
bool is_onboarded = 6;
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
clearKeyManagementProjectId()
public Workload.Builder clearKeyManagementProjectId()
The project id of the key management project for the workload
string key_management_project_id = 7;
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
clearLocation()
public Workload.Builder clearLocation()
The Google Cloud location of the workload
string location = 8;
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
clearName()
public Workload.Builder clearName()
Identifier. Format:
organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Workload.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Workload.Builder |
clearPartner()
public Workload.Builder clearPartner()
Partner associated with this workload.
.google.cloud.cloudcontrolspartner.v1.Workload.Partner partner = 9;
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
clearWorkloadOnboardingState()
public Workload.Builder clearWorkloadOnboardingState()
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;
Returns | |
---|---|
Type | Description |
Workload.Builder |
clone()
public Workload.Builder clone()
Returns | |
---|---|
Type | Description |
Workload.Builder |
getCreateTime()
public Timestamp getCreateTime()
Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Workload getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Workload |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getFolder()
public String getFolder()
Output only. The name of container folder of the assured workload
string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String |
The folder. |
getFolderBytes()
public ByteString getFolderBytes()
Output only. The name of container folder of the assured workload
string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for folder. |
getFolderId()
public long getFolderId()
Output only. Folder id this workload is associated with
int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
long |
The folderId. |
getIsOnboarded()
public boolean getIsOnboarded()
Indicates whether a workload is fully onboarded.
bool is_onboarded = 6;
Returns | |
---|---|
Type | Description |
boolean |
The isOnboarded. |
getKeyManagementProjectId()
public String getKeyManagementProjectId()
The project id of the key management project for the workload
string key_management_project_id = 7;
Returns | |
---|---|
Type | Description |
String |
The keyManagementProjectId. |
getKeyManagementProjectIdBytes()
public ByteString getKeyManagementProjectIdBytes()
The project id of the key management project for the workload
string key_management_project_id = 7;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for keyManagementProjectId. |
getLocation()
public String getLocation()
The Google Cloud location of the workload
string location = 8;
Returns | |
---|---|
Type | Description |
String |
The location. |
getLocationBytes()
public ByteString getLocationBytes()
The Google Cloud location of the workload
string location = 8;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for location. |
getName()
public String getName()
Identifier. Format:
organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Identifier. Format:
organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getPartner()
public Workload.Partner getPartner()
Partner associated with this workload.
.google.cloud.cloudcontrolspartner.v1.Workload.Partner partner = 9;
Returns | |
---|---|
Type | Description |
Workload.Partner |
The partner. |
getPartnerValue()
public int getPartnerValue()
Partner associated with this workload.
.google.cloud.cloudcontrolspartner.v1.Workload.Partner partner = 9;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for partner. |
getWorkloadOnboardingState()
public WorkloadOnboardingState getWorkloadOnboardingState()
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;
Returns | |
---|---|
Type | Description |
WorkloadOnboardingState |
The workloadOnboardingState. |
getWorkloadOnboardingStateBuilder()
public WorkloadOnboardingState.Builder getWorkloadOnboardingStateBuilder()
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;
Returns | |
---|---|
Type | Description |
WorkloadOnboardingState.Builder |
getWorkloadOnboardingStateOrBuilder()
public WorkloadOnboardingStateOrBuilder getWorkloadOnboardingStateOrBuilder()
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;
Returns | |
---|---|
Type | Description |
WorkloadOnboardingStateOrBuilder |
hasCreateTime()
public boolean hasCreateTime()
Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean |
Whether the createTime field is set. |
hasWorkloadOnboardingState()
public boolean hasWorkloadOnboardingState()
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;
Returns | |
---|---|
Type | Description |
boolean |
Whether the workloadOnboardingState field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public Workload.Builder mergeCreateTime(Timestamp value)
Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Workload.Builder |
mergeFrom(Workload other)
public Workload.Builder mergeFrom(Workload other)
Parameter | |
---|---|
Name | Description |
other |
Workload |
Returns | |
---|---|
Type | Description |
Workload.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Workload.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Workload.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Workload.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Workload.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Workload.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Workload.Builder |
mergeWorkloadOnboardingState(WorkloadOnboardingState value)
public Workload.Builder mergeWorkloadOnboardingState(WorkloadOnboardingState value)
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;
Parameter | |
---|---|
Name | Description |
value |
WorkloadOnboardingState |
Returns | |
---|---|
Type | Description |
Workload.Builder |
setCreateTime(Timestamp value)
public Workload.Builder setCreateTime(Timestamp value)
Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Workload.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public Workload.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
Workload.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Workload.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Workload.Builder |
setFolder(String value)
public Workload.Builder setFolder(String value)
Output only. The name of container folder of the assured workload
string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
String The folder to set. |
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
setFolderBytes(ByteString value)
public Workload.Builder setFolderBytes(ByteString value)
Output only. The name of container folder of the assured workload
string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for folder to set. |
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
setFolderId(long value)
public Workload.Builder setFolderId(long value)
Output only. Folder id this workload is associated with
int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
long The folderId to set. |
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
setIsOnboarded(boolean value)
public Workload.Builder setIsOnboarded(boolean value)
Indicates whether a workload is fully onboarded.
bool is_onboarded = 6;
Parameter | |
---|---|
Name | Description |
value |
boolean The isOnboarded to set. |
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
setKeyManagementProjectId(String value)
public Workload.Builder setKeyManagementProjectId(String value)
The project id of the key management project for the workload
string key_management_project_id = 7;
Parameter | |
---|---|
Name | Description |
value |
String The keyManagementProjectId to set. |
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
setKeyManagementProjectIdBytes(ByteString value)
public Workload.Builder setKeyManagementProjectIdBytes(ByteString value)
The project id of the key management project for the workload
string key_management_project_id = 7;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for keyManagementProjectId to set. |
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
setLocation(String value)
public Workload.Builder setLocation(String value)
The Google Cloud location of the workload
string location = 8;
Parameter | |
---|---|
Name | Description |
value |
String The location to set. |
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
setLocationBytes(ByteString value)
public Workload.Builder setLocationBytes(ByteString value)
The Google Cloud location of the workload
string location = 8;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for location to set. |
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
setName(String value)
public Workload.Builder setName(String value)
Identifier. Format:
organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Workload.Builder setNameBytes(ByteString value)
Identifier. Format:
organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
setPartner(Workload.Partner value)
public Workload.Builder setPartner(Workload.Partner value)
Partner associated with this workload.
.google.cloud.cloudcontrolspartner.v1.Workload.Partner partner = 9;
Parameter | |
---|---|
Name | Description |
value |
Workload.Partner The partner to set. |
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
setPartnerValue(int value)
public Workload.Builder setPartnerValue(int value)
Partner associated with this workload.
.google.cloud.cloudcontrolspartner.v1.Workload.Partner partner = 9;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for partner to set. |
Returns | |
---|---|
Type | Description |
Workload.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Workload.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Workload.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Workload.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Workload.Builder |
setWorkloadOnboardingState(WorkloadOnboardingState value)
public Workload.Builder setWorkloadOnboardingState(WorkloadOnboardingState value)
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;
Parameter | |
---|---|
Name | Description |
value |
WorkloadOnboardingState |
Returns | |
---|---|
Type | Description |
Workload.Builder |
setWorkloadOnboardingState(WorkloadOnboardingState.Builder builderForValue)
public Workload.Builder setWorkloadOnboardingState(WorkloadOnboardingState.Builder builderForValue)
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;
Parameter | |
---|---|
Name | Description |
builderForValue |
WorkloadOnboardingState.Builder |
Returns | |
---|---|
Type | Description |
Workload.Builder |