Class ScopeLifecycleState.Builder (0.16.0)

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

ScopeLifecycleState describes the state of a Scope resource.

Protobuf type google.events.cloud.gkehub.v1.ScopeLifecycleState

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.events.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1;

Returns
Type Description
ScopeLifecycleState.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCode()

public ScopeLifecycleState.Code getCode()

Output only. The current state of the scope resource.

.google.events.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1;

Returns
Type Description
ScopeLifecycleState.Code

The code.

getCodeValue()

public int getCodeValue()

Output only. The current state of the scope resource.

.google.events.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1;

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScopeLifecycleState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.events.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1;

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.events.cloud.gkehub.v1.ScopeLifecycleState.Code code = 1;

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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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