Class CreateWorkloadOperationMetadata.Builder (2.16.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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