Class Workload.SaaEnrollmentResponse.Builder (2.31.0)

public static final class Workload.SaaEnrollmentResponse.Builder extends GeneratedMessageV3.Builder<Workload.SaaEnrollmentResponse.Builder> implements Workload.SaaEnrollmentResponseOrBuilder

Signed Access Approvals (SAA) enrollment response.

Protobuf type google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse

Static Methods

getDescriptor()

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

Methods

addAllSetupErrors(Iterable<? extends Workload.SaaEnrollmentResponse.SetupError> values)

public Workload.SaaEnrollmentResponse.Builder addAllSetupErrors(Iterable<? extends Workload.SaaEnrollmentResponse.SetupError> values)

Indicates SAA enrollment setup error if any.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError>

The setupErrors to add.

Returns
TypeDescription
Workload.SaaEnrollmentResponse.Builder

This builder for chaining.

addAllSetupErrorsValue(Iterable<Integer> values)

public Workload.SaaEnrollmentResponse.Builder addAllSetupErrorsValue(Iterable<Integer> values)

Indicates SAA enrollment setup error if any.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for setupErrors to add.

Returns
TypeDescription
Workload.SaaEnrollmentResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSetupErrors(Workload.SaaEnrollmentResponse.SetupError value)

public Workload.SaaEnrollmentResponse.Builder addSetupErrors(Workload.SaaEnrollmentResponse.SetupError value)

Indicates SAA enrollment setup error if any.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;

Parameter
NameDescription
valueWorkload.SaaEnrollmentResponse.SetupError

The setupErrors to add.

Returns
TypeDescription
Workload.SaaEnrollmentResponse.Builder

This builder for chaining.

addSetupErrorsValue(int value)

public Workload.SaaEnrollmentResponse.Builder addSetupErrorsValue(int value)

Indicates SAA enrollment setup error if any.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for setupErrors to add.

Returns
TypeDescription
Workload.SaaEnrollmentResponse.Builder

This builder for chaining.

build()

public Workload.SaaEnrollmentResponse build()
Returns
TypeDescription
Workload.SaaEnrollmentResponse

buildPartial()

public Workload.SaaEnrollmentResponse buildPartial()
Returns
TypeDescription
Workload.SaaEnrollmentResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSetupErrors()

public Workload.SaaEnrollmentResponse.Builder clearSetupErrors()

Indicates SAA enrollment setup error if any.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;

Returns
TypeDescription
Workload.SaaEnrollmentResponse.Builder

This builder for chaining.

clearSetupStatus()

public Workload.SaaEnrollmentResponse.Builder clearSetupStatus()

Indicates SAA enrollment status of a given workload.

optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1;

Returns
TypeDescription
Workload.SaaEnrollmentResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Workload.SaaEnrollmentResponse getDefaultInstanceForType()
Returns
TypeDescription
Workload.SaaEnrollmentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSetupErrors(int index)

public Workload.SaaEnrollmentResponse.SetupError getSetupErrors(int index)

Indicates SAA enrollment setup error if any.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
Workload.SaaEnrollmentResponse.SetupError

The setupErrors at the given index.

getSetupErrorsCount()

public int getSetupErrorsCount()

Indicates SAA enrollment setup error if any.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;

Returns
TypeDescription
int

The count of setupErrors.

getSetupErrorsList()

public List<Workload.SaaEnrollmentResponse.SetupError> getSetupErrorsList()

Indicates SAA enrollment setup error if any.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;

Returns
TypeDescription
List<SetupError>

A list containing the setupErrors.

getSetupErrorsValue(int index)

public int getSetupErrorsValue(int index)

Indicates SAA enrollment setup error if any.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of setupErrors at the given index.

getSetupErrorsValueList()

public List<Integer> getSetupErrorsValueList()

Indicates SAA enrollment setup error if any.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for setupErrors.

getSetupStatus()

public Workload.SaaEnrollmentResponse.SetupState getSetupStatus()

Indicates SAA enrollment status of a given workload.

optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1;

Returns
TypeDescription
Workload.SaaEnrollmentResponse.SetupState

The setupStatus.

getSetupStatusValue()

public int getSetupStatusValue()

Indicates SAA enrollment status of a given workload.

optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for setupStatus.

hasSetupStatus()

public boolean hasSetupStatus()

Indicates SAA enrollment status of a given workload.

optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1;

Returns
TypeDescription
boolean

Whether the setupStatus field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Workload.SaaEnrollmentResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Workload.SaaEnrollmentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Workload.SaaEnrollmentResponse.Builder
Overrides

setSetupErrors(int index, Workload.SaaEnrollmentResponse.SetupError value)

public Workload.SaaEnrollmentResponse.Builder setSetupErrors(int index, Workload.SaaEnrollmentResponse.SetupError value)

Indicates SAA enrollment setup error if any.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueWorkload.SaaEnrollmentResponse.SetupError

The setupErrors to set.

Returns
TypeDescription
Workload.SaaEnrollmentResponse.Builder

This builder for chaining.

setSetupErrorsValue(int index, int value)

public Workload.SaaEnrollmentResponse.Builder setSetupErrorsValue(int index, int value)

Indicates SAA enrollment setup error if any.

repeated .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError setup_errors = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
Workload.SaaEnrollmentResponse.Builder

This builder for chaining.

setSetupStatus(Workload.SaaEnrollmentResponse.SetupState value)

public Workload.SaaEnrollmentResponse.Builder setSetupStatus(Workload.SaaEnrollmentResponse.SetupState value)

Indicates SAA enrollment status of a given workload.

optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1;

Parameter
NameDescription
valueWorkload.SaaEnrollmentResponse.SetupState

The setupStatus to set.

Returns
TypeDescription
Workload.SaaEnrollmentResponse.Builder

This builder for chaining.

setSetupStatusValue(int value)

public Workload.SaaEnrollmentResponse.Builder setSetupStatusValue(int value)

Indicates SAA enrollment status of a given workload.

optional .google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupState setup_status = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Workload.SaaEnrollmentResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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