Class Workload.SaaEnrollmentResponse.Builder (2.43.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.assuredworkloads.v1beta1.Workload.SaaEnrollmentResponse.SetupError>

The setupErrors to add.

Returns
Type Description
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
Name Description
values Iterable<Integer>

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

Returns
Type Description
Workload.SaaEnrollmentResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Workload.SaaEnrollmentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value Workload.SaaEnrollmentResponse.SetupError

The setupErrors to add.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
Workload.SaaEnrollmentResponse.Builder

This builder for chaining.

build()

public Workload.SaaEnrollmentResponse build()
Returns
Type Description
Workload.SaaEnrollmentResponse

buildPartial()

public Workload.SaaEnrollmentResponse buildPartial()
Returns
Type Description
Workload.SaaEnrollmentResponse

clear()

public Workload.SaaEnrollmentResponse.Builder clear()
Returns
Type Description
Workload.SaaEnrollmentResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Workload.SaaEnrollmentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
Workload.SaaEnrollmentResponse.Builder

This builder for chaining.

clone()

public Workload.SaaEnrollmentResponse.Builder clone()
Returns
Type Description
Workload.SaaEnrollmentResponse.Builder
Overrides

getDefaultInstanceForType()

public Workload.SaaEnrollmentResponse getDefaultInstanceForType()
Returns
Type Description
Workload.SaaEnrollmentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the setupStatus field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Workload.SaaEnrollmentResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Workload.SaaEnrollmentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value Workload.SaaEnrollmentResponse.SetupError

The setupErrors to set.

Returns
Type Description
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
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
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
Name Description
value Workload.SaaEnrollmentResponse.SetupState

The setupStatus to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
Workload.SaaEnrollmentResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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