Class Workload.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Workload.Builder>
com.google.cloud.cloudcontrolspartner.v1.Workload.Builder
- All Implemented Interfaces:
WorkloadOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Workload
public static final class Workload.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Workload.Builder>
implements WorkloadOrBuilder
Contains metadata around the [Workload resource](https://cloud.google.com/assured-workloads/docs/reference/rest/Shared.Types/Workload) in the Assured Workloads API.Protobuf type
google.cloud.cloudcontrolspartner.v1.Workload-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Indicates whether a workload is fully onboarded.The project id of the key management project for the workloadThe Google Cloud location of the workloadIdentifier.Partner associated with this workload.Container for workload onboarding steps.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.longOutput only.booleanIndicates whether a workload is fully onboarded.The project id of the key management project for the workloadcom.google.protobuf.ByteStringThe project id of the key management project for the workloadThe Google Cloud location of the workloadcom.google.protobuf.ByteStringThe Google Cloud location of the workloadgetName()Identifier.com.google.protobuf.ByteStringIdentifier.Partner associated with this workload.intPartner associated with this workload.Container for workload onboarding steps.Container for workload onboarding steps.Container for workload onboarding steps.booleanOutput only.booleanContainer for workload onboarding steps.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Container for workload onboarding steps.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Output only.setFolderBytes(com.google.protobuf.ByteString value) Output only.setFolderId(long value) Output only.setIsOnboarded(boolean value) Indicates whether a workload is fully onboarded.setKeyManagementProjectId(String value) The project id of the key management project for the workloadsetKeyManagementProjectIdBytes(com.google.protobuf.ByteString value) The project id of the key management project for the workloadsetLocation(String value) The Google Cloud location of the workloadsetLocationBytes(com.google.protobuf.ByteString value) The Google Cloud location of the workloadIdentifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setPartner(Workload.Partner value) Partner associated with this workload.setPartnerValue(int value) Partner associated with this workload.Container for workload onboarding steps.setWorkloadOnboardingState(WorkloadOnboardingState.Builder builderForValue) Container for workload onboarding steps.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Workload.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Workload.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Workload.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Workload.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Workload.Builder>
-
mergeFrom
public Workload.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Workload.Builder>- Throws:
IOException
-
getName
Identifier. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceWorkloadOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceWorkloadOrBuilder- Returns:
- The bytes for name.
-
setName
Identifier. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Identifier. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- This builder for chaining.
-
setNameBytes
Identifier. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getFolderId
public long getFolderId()Output only. Folder id this workload is associated with
int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFolderIdin interfaceWorkloadOrBuilder- Returns:
- The folderId.
-
setFolderId
Output only. Folder id this workload is associated with
int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The folderId to set.- Returns:
- This builder for chaining.
-
clearFolderId
Output only. Folder id this workload is associated with
int64 folder_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceWorkloadOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceWorkloadOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceWorkloadOrBuilder
-
getFolder
Output only. The name of container folder of the assured workload
string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFolderin interfaceWorkloadOrBuilder- Returns:
- The folder.
-
getFolderBytes
public com.google.protobuf.ByteString getFolderBytes()Output only. The name of container folder of the assured workload
string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getFolderBytesin interfaceWorkloadOrBuilder- Returns:
- The bytes for folder.
-
setFolder
Output only. The name of container folder of the assured workload
string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The folder to set.- Returns:
- This builder for chaining.
-
clearFolder
Output only. The name of container folder of the assured workload
string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setFolderBytes
Output only. The name of container folder of the assured workload
string folder = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for folder to set.- Returns:
- This builder for chaining.
-
hasWorkloadOnboardingState
public boolean hasWorkloadOnboardingState()Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;- Specified by:
hasWorkloadOnboardingStatein interfaceWorkloadOrBuilder- Returns:
- Whether the workloadOnboardingState field is set.
-
getWorkloadOnboardingState
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;- Specified by:
getWorkloadOnboardingStatein interfaceWorkloadOrBuilder- Returns:
- The workloadOnboardingState.
-
setWorkloadOnboardingState
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5; -
setWorkloadOnboardingState
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5; -
mergeWorkloadOnboardingState
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5; -
clearWorkloadOnboardingState
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5; -
getWorkloadOnboardingStateBuilder
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5; -
getWorkloadOnboardingStateOrBuilder
Container for workload onboarding steps.
.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;- Specified by:
getWorkloadOnboardingStateOrBuilderin interfaceWorkloadOrBuilder
-
getIsOnboarded
public boolean getIsOnboarded()Indicates whether a workload is fully onboarded.
bool is_onboarded = 6;- Specified by:
getIsOnboardedin interfaceWorkloadOrBuilder- Returns:
- The isOnboarded.
-
setIsOnboarded
Indicates whether a workload is fully onboarded.
bool is_onboarded = 6;- Parameters:
value- The isOnboarded to set.- Returns:
- This builder for chaining.
-
clearIsOnboarded
Indicates whether a workload is fully onboarded.
bool is_onboarded = 6;- Returns:
- This builder for chaining.
-
getKeyManagementProjectId
The project id of the key management project for the workload
string key_management_project_id = 7;- Specified by:
getKeyManagementProjectIdin interfaceWorkloadOrBuilder- Returns:
- The keyManagementProjectId.
-
getKeyManagementProjectIdBytes
public com.google.protobuf.ByteString getKeyManagementProjectIdBytes()The project id of the key management project for the workload
string key_management_project_id = 7;- Specified by:
getKeyManagementProjectIdBytesin interfaceWorkloadOrBuilder- Returns:
- The bytes for keyManagementProjectId.
-
setKeyManagementProjectId
The project id of the key management project for the workload
string key_management_project_id = 7;- Parameters:
value- The keyManagementProjectId to set.- Returns:
- This builder for chaining.
-
clearKeyManagementProjectId
The project id of the key management project for the workload
string key_management_project_id = 7;- Returns:
- This builder for chaining.
-
setKeyManagementProjectIdBytes
The project id of the key management project for the workload
string key_management_project_id = 7;- Parameters:
value- The bytes for keyManagementProjectId to set.- Returns:
- This builder for chaining.
-
getLocation
The Google Cloud location of the workload
string location = 8;- Specified by:
getLocationin interfaceWorkloadOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()The Google Cloud location of the workload
string location = 8;- Specified by:
getLocationBytesin interfaceWorkloadOrBuilder- Returns:
- The bytes for location.
-
setLocation
The Google Cloud location of the workload
string location = 8;- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
The Google Cloud location of the workload
string location = 8;- Returns:
- This builder for chaining.
-
setLocationBytes
The Google Cloud location of the workload
string location = 8;- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
getPartnerValue
public int getPartnerValue()Partner associated with this workload.
.google.cloud.cloudcontrolspartner.v1.Workload.Partner partner = 9;- Specified by:
getPartnerValuein interfaceWorkloadOrBuilder- Returns:
- The enum numeric value on the wire for partner.
-
setPartnerValue
Partner associated with this workload.
.google.cloud.cloudcontrolspartner.v1.Workload.Partner partner = 9;- Parameters:
value- The enum numeric value on the wire for partner to set.- Returns:
- This builder for chaining.
-
getPartner
Partner associated with this workload.
.google.cloud.cloudcontrolspartner.v1.Workload.Partner partner = 9;- Specified by:
getPartnerin interfaceWorkloadOrBuilder- Returns:
- The partner.
-
setPartner
Partner associated with this workload.
.google.cloud.cloudcontrolspartner.v1.Workload.Partner partner = 9;- Parameters:
value- The partner to set.- Returns:
- This builder for chaining.
-
clearPartner
Partner associated with this workload.
.google.cloud.cloudcontrolspartner.v1.Workload.Partner partner = 9;- Returns:
- This builder for chaining.
-