Class OnClusterState.Builder (1.54.0)

public static final class OnClusterState.Builder extends GeneratedMessageV3.Builder<OnClusterState.Builder> implements OnClusterStateOrBuilder

OnClusterState represents the state of a sub-component of Policy Controller.

Protobuf type google.cloud.gkehub.policycontroller.v1beta.OnClusterState

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OnClusterState build()
Returns
Type Description
OnClusterState

buildPartial()

public OnClusterState buildPartial()
Returns
Type Description
OnClusterState

clear()

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

clearDetails()

public OnClusterState.Builder clearDetails()

Surface potential errors or information logs.

string details = 2;

Returns
Type Description
OnClusterState.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public OnClusterState.Builder clearState()

The lifecycle state of this component.

.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState state = 1;

Returns
Type Description
OnClusterState.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public OnClusterState getDefaultInstanceForType()
Returns
Type Description
OnClusterState

getDescriptorForType()

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

getDetails()

public String getDetails()

Surface potential errors or information logs.

string details = 2;

Returns
Type Description
String

The details.

getDetailsBytes()

public ByteString getDetailsBytes()

Surface potential errors or information logs.

string details = 2;

Returns
Type Description
ByteString

The bytes for details.

getState()

public MembershipState.LifecycleState getState()

The lifecycle state of this component.

.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState state = 1;

Returns
Type Description
MembershipState.LifecycleState

The state.

getStateValue()

public int getStateValue()

The lifecycle state of this component.

.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState state = 1;

Returns
Type Description
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OnClusterState other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDetails(String value)

public OnClusterState.Builder setDetails(String value)

Surface potential errors or information logs.

string details = 2;

Parameter
Name Description
value String

The details to set.

Returns
Type Description
OnClusterState.Builder

This builder for chaining.

setDetailsBytes(ByteString value)

public OnClusterState.Builder setDetailsBytes(ByteString value)

Surface potential errors or information logs.

string details = 2;

Parameter
Name Description
value ByteString

The bytes for details to set.

Returns
Type Description
OnClusterState.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setState(MembershipState.LifecycleState value)

public OnClusterState.Builder setState(MembershipState.LifecycleState value)

The lifecycle state of this component.

.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState state = 1;

Parameter
Name Description
value MembershipState.LifecycleState

The state to set.

Returns
Type Description
OnClusterState.Builder

This builder for chaining.

setStateValue(int value)

public OnClusterState.Builder setStateValue(int value)

The lifecycle state of this component.

.google.cloud.gkehub.policycontroller.v1beta.MembershipState.LifecycleState state = 1;

Parameter
Name Description
value int

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

Returns
Type Description
OnClusterState.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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