Class ScopeLifecycleState.Builder (1.85.0)

public static final class ScopeLifecycleState.Builder extends GeneratedMessage.Builder<ScopeLifecycleState.Builder> implements ScopeLifecycleStateOrBuilder

ScopeLifecycleState describes the state of a Scope resource.

Protobuf type google.cloud.gkehub.v1.ScopeLifecycleState

Static Methods

getDescriptor()

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

Methods

build()

public ScopeLifecycleState build()
Returns
Type Description
ScopeLifecycleState

buildPartial()

public ScopeLifecycleState buildPartial()
Returns
Type Description
ScopeLifecycleState

clear()

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

clearCode()

public ScopeLifecycleState.Builder clearCode()

Output only. The current state of the scope resource.

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

Returns
Type Description
ScopeLifecycleState.Builder

This builder for chaining.

getCode()

public ScopeLifecycleState.Code getCode()

Output only. The current state of the scope resource.

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

Returns
Type Description
ScopeLifecycleState.Code

The code.

getCodeValue()

public int getCodeValue()

Output only. The current state of the scope resource.

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

Returns
Type Description
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public ScopeLifecycleState getDefaultInstanceForType()
Returns
Type Description
ScopeLifecycleState

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(ScopeLifecycleState other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCode(ScopeLifecycleState.Code value)

public ScopeLifecycleState.Builder setCode(ScopeLifecycleState.Code value)

Output only. The current state of the scope resource.

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

Parameter
Name Description
value ScopeLifecycleState.Code

The code to set.

Returns
Type Description
ScopeLifecycleState.Builder

This builder for chaining.

setCodeValue(int value)

public ScopeLifecycleState.Builder setCodeValue(int value)

Output only. The current state of the scope resource.

.google.cloud.gkehub.v1.ScopeLifecycleState.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
ScopeLifecycleState.Builder

This builder for chaining.