Class Workload.Builder (0.4.0)

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

Implements

WorkloadOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Workload.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Workload.Builder
Overrides

build()

public Workload build()
Returns
TypeDescription
Workload

buildPartial()

public Workload buildPartial()
Returns
TypeDescription
Workload

clear()

public Workload.Builder clear()
Returns
TypeDescription
Workload.Builder
Overrides

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
TypeDescription
Workload.Builder

clearField(Descriptors.FieldDescriptor field)

public Workload.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Workload.Builder
Overrides

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
TypeDescription
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
TypeDescription
Workload.Builder

This builder for chaining.

clearIsOnboarded()

public Workload.Builder clearIsOnboarded()

Indicates whether a workload is fully onboarded.

bool is_onboarded = 6;

Returns
TypeDescription
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
TypeDescription
Workload.Builder

This builder for chaining.

clearLocation()

public Workload.Builder clearLocation()

The Google Cloud location of the workload

string location = 8;

Returns
TypeDescription
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
TypeDescription
Workload.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Workload.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Workload.Builder
Overrides

clearPartner()

public Workload.Builder clearPartner()

Partner associated with this workload.

.google.cloud.cloudcontrolspartner.v1.Workload.Partner partner = 9;

Returns
TypeDescription
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
TypeDescription
Workload.Builder

clone()

public Workload.Builder clone()
Returns
TypeDescription
Workload.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. Time the resource was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Workload getDefaultInstanceForType()
Returns
TypeDescription
Workload

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
long

The folderId.

getIsOnboarded()

public boolean getIsOnboarded()

Indicates whether a workload is fully onboarded.

bool is_onboarded = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for keyManagementProjectId.

getLocation()

public String getLocation()

The Google Cloud location of the workload

string location = 8;

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The Google Cloud location of the workload

string location = 8;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getPartner()

public Workload.Partner getPartner()

Partner associated with this workload.

.google.cloud.cloudcontrolspartner.v1.Workload.Partner partner = 9;

Returns
TypeDescription
Workload.Partner

The partner.

getPartnerValue()

public int getPartnerValue()

Partner associated with this workload.

.google.cloud.cloudcontrolspartner.v1.Workload.Partner partner = 9;

Returns
TypeDescription
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
TypeDescription
WorkloadOnboardingState

The workloadOnboardingState.

getWorkloadOnboardingStateBuilder()

public WorkloadOnboardingState.Builder getWorkloadOnboardingStateBuilder()

Container for workload onboarding steps.

.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;

Returns
TypeDescription
WorkloadOnboardingState.Builder

getWorkloadOnboardingStateOrBuilder()

public WorkloadOnboardingStateOrBuilder getWorkloadOnboardingStateOrBuilder()

Container for workload onboarding steps.

.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the workloadOnboardingState field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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
NameDescription
valueTimestamp
Returns
TypeDescription
Workload.Builder

mergeFrom(Workload other)

public Workload.Builder mergeFrom(Workload other)
Parameter
NameDescription
otherWorkload
Returns
TypeDescription
Workload.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Workload.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Workload.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Workload.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Workload.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Workload.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Workload.Builder
Overrides

mergeWorkloadOnboardingState(WorkloadOnboardingState value)

public Workload.Builder mergeWorkloadOnboardingState(WorkloadOnboardingState value)

Container for workload onboarding steps.

.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;

Parameter
NameDescription
valueWorkloadOnboardingState
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Workload.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Workload.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Workload.Builder
Overrides

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
NameDescription
valueString

The folder to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for folder to set.

Returns
TypeDescription
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
NameDescription
valuelong

The folderId to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The isOnboarded to set.

Returns
TypeDescription
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
NameDescription
valueString

The keyManagementProjectId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for keyManagementProjectId to set.

Returns
TypeDescription
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
NameDescription
valueString

The location to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueWorkload.Partner

The partner to set.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for partner to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Workload.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Workload.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Workload.Builder
Overrides

setWorkloadOnboardingState(WorkloadOnboardingState value)

public Workload.Builder setWorkloadOnboardingState(WorkloadOnboardingState value)

Container for workload onboarding steps.

.google.cloud.cloudcontrolspartner.v1.WorkloadOnboardingState workload_onboarding_state = 5;

Parameter
NameDescription
valueWorkloadOnboardingState
Returns
TypeDescription
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
NameDescription
builderForValueWorkloadOnboardingState.Builder
Returns
TypeDescription
Workload.Builder