Class OnClusterState.Builder (1.83.0)

public static final class OnClusterState.Builder extends GeneratedMessage.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

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.

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.

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 GeneratedMessage.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

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.

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.