Class CreateWorkloadOperationMetadata.Builder (2.51.0)

public static final class CreateWorkloadOperationMetadata.Builder extends GeneratedMessageV3.Builder<CreateWorkloadOperationMetadata.Builder> implements CreateWorkloadOperationMetadataOrBuilder

Operation metadata to give request details of CreateWorkload.

Protobuf type google.cloud.assuredworkloads.v1beta1.CreateWorkloadOperationMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllResourceSettings(Iterable<? extends Workload.ResourceSettings> values)

public CreateWorkloadOperationMetadata.Builder addAllResourceSettings(Iterable<? extends Workload.ResourceSettings> values)

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings>
Returns
Type Description
CreateWorkloadOperationMetadata.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkloadOperationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateWorkloadOperationMetadata.Builder
Overrides

addResourceSettings(Workload.ResourceSettings value)

public CreateWorkloadOperationMetadata.Builder addResourceSettings(Workload.ResourceSettings value)

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Workload.ResourceSettings
Returns
Type Description
CreateWorkloadOperationMetadata.Builder

addResourceSettings(Workload.ResourceSettings.Builder builderForValue)

public CreateWorkloadOperationMetadata.Builder addResourceSettings(Workload.ResourceSettings.Builder builderForValue)

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Workload.ResourceSettings.Builder
Returns
Type Description
CreateWorkloadOperationMetadata.Builder

addResourceSettings(int index, Workload.ResourceSettings value)

public CreateWorkloadOperationMetadata.Builder addResourceSettings(int index, Workload.ResourceSettings value)

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Workload.ResourceSettings
Returns
Type Description
CreateWorkloadOperationMetadata.Builder

addResourceSettings(int index, Workload.ResourceSettings.Builder builderForValue)

public CreateWorkloadOperationMetadata.Builder addResourceSettings(int index, Workload.ResourceSettings.Builder builderForValue)

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Workload.ResourceSettings.Builder
Returns
Type Description
CreateWorkloadOperationMetadata.Builder

addResourceSettingsBuilder()

public Workload.ResourceSettings.Builder addResourceSettingsBuilder()

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Workload.ResourceSettings.Builder

addResourceSettingsBuilder(int index)

public Workload.ResourceSettings.Builder addResourceSettingsBuilder(int index)

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Workload.ResourceSettings.Builder

build()

public CreateWorkloadOperationMetadata build()
Returns
Type Description
CreateWorkloadOperationMetadata

buildPartial()

public CreateWorkloadOperationMetadata buildPartial()
Returns
Type Description
CreateWorkloadOperationMetadata

clear()

public CreateWorkloadOperationMetadata.Builder clear()
Returns
Type Description
CreateWorkloadOperationMetadata.Builder
Overrides

clearComplianceRegime()

public CreateWorkloadOperationMetadata.Builder clearComplianceRegime()

Optional. Compliance controls that should be applied to the resources managed by the workload.

.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateWorkloadOperationMetadata.Builder

This builder for chaining.

clearCreateTime()

public CreateWorkloadOperationMetadata.Builder clearCreateTime()

Optional. Time when the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateWorkloadOperationMetadata.Builder

clearDisplayName()

public CreateWorkloadOperationMetadata.Builder clearDisplayName()

Optional. The display name of the workload.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateWorkloadOperationMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateWorkloadOperationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateWorkloadOperationMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateWorkloadOperationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateWorkloadOperationMetadata.Builder
Overrides

clearParent()

public CreateWorkloadOperationMetadata.Builder clearParent()

Optional. The parent of the workload.

string parent = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateWorkloadOperationMetadata.Builder

This builder for chaining.

clearResourceSettings()

public CreateWorkloadOperationMetadata.Builder clearResourceSettings()

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateWorkloadOperationMetadata.Builder

clone()

public CreateWorkloadOperationMetadata.Builder clone()
Returns
Type Description
CreateWorkloadOperationMetadata.Builder
Overrides

getComplianceRegime()

public Workload.ComplianceRegime getComplianceRegime()

Optional. Compliance controls that should be applied to the resources managed by the workload.

.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Workload.ComplianceRegime

The complianceRegime.

getComplianceRegimeValue()

public int getComplianceRegimeValue()

Optional. Compliance controls that should be applied to the resources managed by the workload.

.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for complianceRegime.

getCreateTime()

public Timestamp getCreateTime()

Optional. Time when the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Optional. Time when the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Optional. Time when the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public CreateWorkloadOperationMetadata getDefaultInstanceForType()
Returns
Type Description
CreateWorkloadOperationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Optional. The display name of the workload.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. The display name of the workload.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getParent()

public String getParent()

Optional. The parent of the workload.

string parent = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Optional. The parent of the workload.

string parent = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for parent.

getResourceSettings(int index)

public Workload.ResourceSettings getResourceSettings(int index)

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Workload.ResourceSettings

getResourceSettingsBuilder(int index)

public Workload.ResourceSettings.Builder getResourceSettingsBuilder(int index)

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Workload.ResourceSettings.Builder

getResourceSettingsBuilderList()

public List<Workload.ResourceSettings.Builder> getResourceSettingsBuilderList()

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getResourceSettingsCount()

public int getResourceSettingsCount()

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getResourceSettingsList()

public List<Workload.ResourceSettings> getResourceSettingsList()

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ResourceSettings>

getResourceSettingsOrBuilder(int index)

public Workload.ResourceSettingsOrBuilder getResourceSettingsOrBuilder(int index)

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Workload.ResourceSettingsOrBuilder

getResourceSettingsOrBuilderList()

public List<? extends Workload.ResourceSettingsOrBuilder> getResourceSettingsOrBuilderList()

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettingsOrBuilder>

hasCreateTime()

public boolean hasCreateTime()

Optional. Time when the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public CreateWorkloadOperationMetadata.Builder mergeCreateTime(Timestamp value)

Optional. Time when the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
CreateWorkloadOperationMetadata.Builder

mergeFrom(CreateWorkloadOperationMetadata other)

public CreateWorkloadOperationMetadata.Builder mergeFrom(CreateWorkloadOperationMetadata other)
Parameter
Name Description
other CreateWorkloadOperationMetadata
Returns
Type Description
CreateWorkloadOperationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateWorkloadOperationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateWorkloadOperationMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateWorkloadOperationMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateWorkloadOperationMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkloadOperationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateWorkloadOperationMetadata.Builder
Overrides

removeResourceSettings(int index)

public CreateWorkloadOperationMetadata.Builder removeResourceSettings(int index)

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
CreateWorkloadOperationMetadata.Builder

setComplianceRegime(Workload.ComplianceRegime value)

public CreateWorkloadOperationMetadata.Builder setComplianceRegime(Workload.ComplianceRegime value)

Optional. Compliance controls that should be applied to the resources managed by the workload.

.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Workload.ComplianceRegime

The complianceRegime to set.

Returns
Type Description
CreateWorkloadOperationMetadata.Builder

This builder for chaining.

setComplianceRegimeValue(int value)

public CreateWorkloadOperationMetadata.Builder setComplianceRegimeValue(int value)

Optional. Compliance controls that should be applied to the resources managed by the workload.

.google.cloud.assuredworkloads.v1beta1.Workload.ComplianceRegime compliance_regime = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
CreateWorkloadOperationMetadata.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public CreateWorkloadOperationMetadata.Builder setCreateTime(Timestamp value)

Optional. Time when the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
CreateWorkloadOperationMetadata.Builder

setCreateTime(Timestamp.Builder builderForValue)

public CreateWorkloadOperationMetadata.Builder setCreateTime(Timestamp.Builder builderForValue)

Optional. Time when the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CreateWorkloadOperationMetadata.Builder

setDisplayName(String value)

public CreateWorkloadOperationMetadata.Builder setDisplayName(String value)

Optional. The display name of the workload.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
CreateWorkloadOperationMetadata.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public CreateWorkloadOperationMetadata.Builder setDisplayNameBytes(ByteString value)

Optional. The display name of the workload.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
CreateWorkloadOperationMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkloadOperationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateWorkloadOperationMetadata.Builder
Overrides

setParent(String value)

public CreateWorkloadOperationMetadata.Builder setParent(String value)

Optional. The parent of the workload.

string parent = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateWorkloadOperationMetadata.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateWorkloadOperationMetadata.Builder setParentBytes(ByteString value)

Optional. The parent of the workload.

string parent = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateWorkloadOperationMetadata.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateWorkloadOperationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateWorkloadOperationMetadata.Builder
Overrides

setResourceSettings(int index, Workload.ResourceSettings value)

public CreateWorkloadOperationMetadata.Builder setResourceSettings(int index, Workload.ResourceSettings value)

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value Workload.ResourceSettings
Returns
Type Description
CreateWorkloadOperationMetadata.Builder

setResourceSettings(int index, Workload.ResourceSettings.Builder builderForValue)

public CreateWorkloadOperationMetadata.Builder setResourceSettings(int index, Workload.ResourceSettings.Builder builderForValue)

Optional. Resource properties in the input that are used for creating/customizing workload resources.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings resource_settings = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue Workload.ResourceSettings.Builder
Returns
Type Description
CreateWorkloadOperationMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkloadOperationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateWorkloadOperationMetadata.Builder
Overrides