Class NamespaceLifecycleState.Builder (1.85.0)

public static final class NamespaceLifecycleState.Builder extends GeneratedMessage.Builder<NamespaceLifecycleState.Builder> implements NamespaceLifecycleStateOrBuilder

NamespaceLifecycleState describes the state of a Namespace resource.

Protobuf type google.cloud.gkehub.v1.NamespaceLifecycleState

Static Methods

getDescriptor()

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

Methods

build()

public NamespaceLifecycleState build()
Returns
Type Description
NamespaceLifecycleState

buildPartial()

public NamespaceLifecycleState buildPartial()
Returns
Type Description
NamespaceLifecycleState

clear()

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

clearCode()

public NamespaceLifecycleState.Builder clearCode()

Output only. The current state of the Namespace resource.

.google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NamespaceLifecycleState.Builder

This builder for chaining.

getCode()

public NamespaceLifecycleState.Code getCode()

Output only. The current state of the Namespace resource.

.google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NamespaceLifecycleState.Code

The code.

getCodeValue()

public int getCodeValue()

Output only. The current state of the Namespace resource.

.google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public NamespaceLifecycleState getDefaultInstanceForType()
Returns
Type Description
NamespaceLifecycleState

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NamespaceLifecycleState other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCode(NamespaceLifecycleState.Code value)

public NamespaceLifecycleState.Builder setCode(NamespaceLifecycleState.Code value)

Output only. The current state of the Namespace resource.

.google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value NamespaceLifecycleState.Code

The code to set.

Returns
Type Description
NamespaceLifecycleState.Builder

This builder for chaining.

setCodeValue(int value)

public NamespaceLifecycleState.Builder setCodeValue(int value)

Output only. The current state of the Namespace resource.

.google.cloud.gkehub.v1.NamespaceLifecycleState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
NamespaceLifecycleState.Builder

This builder for chaining.