Class OperatorState.Builder (1.24.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.gkehub.configmanagement.v1.InstallError>
Returns
TypeDescription
OperatorState.Builder

addErrors(InstallError value)

public OperatorState.Builder addErrors(InstallError value)

Install errors.

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

Parameter
NameDescription
valueInstallError
Returns
TypeDescription
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
NameDescription
builderForValueInstallError.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInstallError
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInstallError.Builder
Returns
TypeDescription
OperatorState.Builder

addErrorsBuilder()

public InstallError.Builder addErrorsBuilder()

Install errors.

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

Returns
TypeDescription
InstallError.Builder

addErrorsBuilder(int index)

public InstallError.Builder addErrorsBuilder(int index)

Install errors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
InstallError.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OperatorState build()
Returns
TypeDescription
OperatorState

buildPartial()

public OperatorState buildPartial()
Returns
TypeDescription
OperatorState

clear()

public OperatorState.Builder clear()
Returns
TypeDescription
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
TypeDescription
OperatorState.Builder

This builder for chaining.

clearErrors()

public OperatorState.Builder clearErrors()

Install errors.

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

Returns
TypeDescription
OperatorState.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVersion()

public OperatorState.Builder clearVersion()

The semenatic version number of the operator

string version = 1;

Returns
TypeDescription
OperatorState.Builder

This builder for chaining.

clone()

public OperatorState.Builder clone()
Returns
TypeDescription
OperatorState.Builder
Overrides

getDefaultInstanceForType()

public OperatorState getDefaultInstanceForType()
Returns
TypeDescription
OperatorState

getDeploymentState()

public DeploymentState getDeploymentState()

The state of the Operator's deployment

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

Returns
TypeDescription
DeploymentState

The deploymentState.

getDeploymentStateValue()

public int getDeploymentStateValue()

The state of the Operator's deployment

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

Returns
TypeDescription
int

The enum numeric value on the wire for deploymentState.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getErrors(int index)

public InstallError getErrors(int index)

Install errors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
InstallError

getErrorsBuilder(int index)

public InstallError.Builder getErrorsBuilder(int index)

Install errors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
InstallError.Builder

getErrorsBuilderList()

public List<InstallError.Builder> getErrorsBuilderList()

Install errors.

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

Returns
TypeDescription
List<Builder>

getErrorsCount()

public int getErrorsCount()

Install errors.

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

Returns
TypeDescription
int

getErrorsList()

public List<InstallError> getErrorsList()

Install errors.

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

Returns
TypeDescription
List<InstallError>

getErrorsOrBuilder(int index)

public InstallErrorOrBuilder getErrorsOrBuilder(int index)

Install errors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
InstallErrorOrBuilder

getErrorsOrBuilderList()

public List<? extends InstallErrorOrBuilder> getErrorsOrBuilderList()

Install errors.

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

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

getVersion()

public String getVersion()

The semenatic version number of the operator

string version = 1;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The semenatic version number of the operator

string version = 1;

Returns
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OperatorState other)

public OperatorState.Builder mergeFrom(OperatorState other)
Parameter
NameDescription
otherOperatorState
Returns
TypeDescription
OperatorState.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeErrors(int index)

public OperatorState.Builder removeErrors(int index)

Install errors.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueDeploymentState

The deploymentState to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
indexint
valueInstallError
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInstallError.Builder
Returns
TypeDescription
OperatorState.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public OperatorState.Builder setVersion(String value)

The semenatic version number of the operator

string version = 1;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
OperatorState.Builder

This builder for chaining.