Class OperatorState.Builder (1.45.0)

public static final class OperatorState.Builder extends GeneratedMessageV3.Builder<OperatorState.Builder> implements OperatorStateOrBuilder

State information for an ACM's Operator

Protobuf type google.cloud.gkehub.configmanagement.v1.OperatorState

Static Methods

getDescriptor()

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

Methods

addAllErrors(Iterable<? extends InstallError> values)

public OperatorState.Builder addAllErrors(Iterable<? extends InstallError> values)

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.gkehub.configmanagement.v1.InstallError>
Returns
Type Description
OperatorState.Builder

addErrors(InstallError value)

public OperatorState.Builder addErrors(InstallError value)

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Parameter
Name Description
value InstallError
Returns
Type Description
OperatorState.Builder

addErrors(InstallError.Builder builderForValue)

public OperatorState.Builder addErrors(InstallError.Builder builderForValue)

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Parameter
Name Description
builderForValue InstallError.Builder
Returns
Type Description
OperatorState.Builder

addErrors(int index, InstallError value)

public OperatorState.Builder addErrors(int index, InstallError value)

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Parameters
Name Description
index int
value InstallError
Returns
Type Description
OperatorState.Builder

addErrors(int index, InstallError.Builder builderForValue)

public OperatorState.Builder addErrors(int index, InstallError.Builder builderForValue)

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Parameters
Name Description
index int
builderForValue InstallError.Builder
Returns
Type Description
OperatorState.Builder

addErrorsBuilder()

public InstallError.Builder addErrorsBuilder()

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Returns
Type Description
InstallError.Builder

addErrorsBuilder(int index)

public InstallError.Builder addErrorsBuilder(int index)

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Parameter
Name Description
index int
Returns
Type Description
InstallError.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OperatorState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OperatorState.Builder
Overrides

build()

public OperatorState build()
Returns
Type Description
OperatorState

buildPartial()

public OperatorState buildPartial()
Returns
Type Description
OperatorState

clear()

public OperatorState.Builder clear()
Returns
Type Description
OperatorState.Builder
Overrides

clearDeploymentState()

public OperatorState.Builder clearDeploymentState()

The state of the Operator's deployment

.google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2;

Returns
Type Description
OperatorState.Builder

This builder for chaining.

clearErrors()

public OperatorState.Builder clearErrors()

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Returns
Type Description
OperatorState.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public OperatorState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OperatorState.Builder
Overrides

clearVersion()

public OperatorState.Builder clearVersion()

The semenatic version number of the operator

string version = 1;

Returns
Type Description
OperatorState.Builder

This builder for chaining.

clone()

public OperatorState.Builder clone()
Returns
Type Description
OperatorState.Builder
Overrides

getDefaultInstanceForType()

public OperatorState getDefaultInstanceForType()
Returns
Type Description
OperatorState

getDeploymentState()

public DeploymentState getDeploymentState()

The state of the Operator's deployment

.google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2;

Returns
Type Description
DeploymentState

The deploymentState.

getDeploymentStateValue()

public int getDeploymentStateValue()

The state of the Operator's deployment

.google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2;

Returns
Type Description
int

The enum numeric value on the wire for deploymentState.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getErrors(int index)

public InstallError getErrors(int index)

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Parameter
Name Description
index int
Returns
Type Description
InstallError

getErrorsBuilder(int index)

public InstallError.Builder getErrorsBuilder(int index)

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Parameter
Name Description
index int
Returns
Type Description
InstallError.Builder

getErrorsBuilderList()

public List<InstallError.Builder> getErrorsBuilderList()

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Returns
Type Description
List<Builder>

getErrorsCount()

public int getErrorsCount()

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Returns
Type Description
int

getErrorsList()

public List<InstallError> getErrorsList()

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Returns
Type Description
List<InstallError>

getErrorsOrBuilder(int index)

public InstallErrorOrBuilder getErrorsOrBuilder(int index)

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Parameter
Name Description
index int
Returns
Type Description
InstallErrorOrBuilder

getErrorsOrBuilderList()

public List<? extends InstallErrorOrBuilder> getErrorsOrBuilderList()

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Returns
Type Description
List<? extends com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder>

getVersion()

public String getVersion()

The semenatic version number of the operator

string version = 1;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The semenatic version number of the operator

string version = 1;

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OperatorState other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeErrors(int index)

public OperatorState.Builder removeErrors(int index)

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Parameter
Name Description
index int
Returns
Type Description
OperatorState.Builder

setDeploymentState(DeploymentState value)

public OperatorState.Builder setDeploymentState(DeploymentState value)

The state of the Operator's deployment

.google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2;

Parameter
Name Description
value DeploymentState

The deploymentState to set.

Returns
Type Description
OperatorState.Builder

This builder for chaining.

setDeploymentStateValue(int value)

public OperatorState.Builder setDeploymentStateValue(int value)

The state of the Operator's deployment

.google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2;

Parameter
Name Description
value int

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

Returns
Type Description
OperatorState.Builder

This builder for chaining.

setErrors(int index, InstallError value)

public OperatorState.Builder setErrors(int index, InstallError value)

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Parameters
Name Description
index int
value InstallError
Returns
Type Description
OperatorState.Builder

setErrors(int index, InstallError.Builder builderForValue)

public OperatorState.Builder setErrors(int index, InstallError.Builder builderForValue)

Install errors.

repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;

Parameters
Name Description
index int
builderForValue InstallError.Builder
Returns
Type Description
OperatorState.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public OperatorState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OperatorState.Builder
Overrides

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

public OperatorState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OperatorState.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public OperatorState.Builder setVersion(String value)

The semenatic version number of the operator

string version = 1;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
OperatorState.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public OperatorState.Builder setVersionBytes(ByteString value)

The semenatic version number of the operator

string version = 1;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
OperatorState.Builder

This builder for chaining.