Class CreateWorkloadOperationMetadata.Builder (0.8.2)

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

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
NameDescription
valuesIterable<? extends com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceSettings>
Returns
TypeDescription
CreateWorkloadOperationMetadata.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkloadOperationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueWorkload.ResourceSettings
Returns
TypeDescription
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
NameDescription
builderForValueWorkload.ResourceSettings.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueWorkload.ResourceSettings
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWorkload.ResourceSettings.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Workload.ResourceSettings.Builder

build()

public CreateWorkloadOperationMetadata build()
Returns
TypeDescription
CreateWorkloadOperationMetadata

buildPartial()

public CreateWorkloadOperationMetadata buildPartial()
Returns
TypeDescription
CreateWorkloadOperationMetadata

clear()

public CreateWorkloadOperationMetadata.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateWorkloadOperationMetadata.Builder

clearDisplayName()

public CreateWorkloadOperationMetadata.Builder clearDisplayName()

Optional. The display name of the workload.

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

Returns
TypeDescription
CreateWorkloadOperationMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateWorkloadOperationMetadata.Builder clearParent()

Optional. The parent of the workload.

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

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

clone()

public CreateWorkloadOperationMetadata.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Optional. Time when the operation was created.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public CreateWorkloadOperationMetadata getDefaultInstanceForType()
Returns
TypeDescription
CreateWorkloadOperationMetadata

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Optional. The display name of the workload.

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

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. The display name of the workload.

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

Returns
TypeDescription
ByteString

The bytes for displayName.

getParent()

public String getParent()

Optional. The parent of the workload.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Optional. The parent of the workload.

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

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

Whether the createTime 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 CreateWorkloadOperationMetadata.Builder mergeCreateTime(Timestamp value)

Optional. Time when the operation was created.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CreateWorkloadOperationMetadata.Builder

mergeFrom(CreateWorkloadOperationMetadata other)

public CreateWorkloadOperationMetadata.Builder mergeFrom(CreateWorkloadOperationMetadata other)
Parameter
NameDescription
otherCreateWorkloadOperationMetadata
Returns
TypeDescription
CreateWorkloadOperationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateWorkloadOperationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueWorkload.ComplianceRegime

The complianceRegime to set.

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

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

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

The displayName to set.

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

The bytes for displayName to set.

Returns
TypeDescription
CreateWorkloadOperationMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateWorkloadOperationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueWorkload.ResourceSettings
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWorkload.ResourceSettings.Builder
Returns
TypeDescription
CreateWorkloadOperationMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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