Class CreateWorkloadOperationMetadata.Builder (2.54.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.v1.CreateWorkloadOperationMetadata

Static Methods

getDescriptor()

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

Methods

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

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.v1.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.

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.v1.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.v1.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.

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

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.v1.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.v1.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

setUnknownFields(UnknownFieldSet unknownFields)

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