Class ScopeLifecycleState.Builder (0.14.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ScopeLifecycleState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ScopeLifecycleState.Builder
Overrides

build()

public ScopeLifecycleState build()
Returns
TypeDescription
ScopeLifecycleState

buildPartial()

public ScopeLifecycleState buildPartial()
Returns
TypeDescription
ScopeLifecycleState

clear()

public ScopeLifecycleState.Builder clear()
Returns
TypeDescription
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
TypeDescription
ScopeLifecycleState.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ScopeLifecycleState.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ScopeLifecycleState.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ScopeLifecycleState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ScopeLifecycleState.Builder
Overrides

clone()

public ScopeLifecycleState.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public ScopeLifecycleState getDefaultInstanceForType()
Returns
TypeDescription
ScopeLifecycleState

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ScopeLifecycleState other)

public ScopeLifecycleState.Builder mergeFrom(ScopeLifecycleState other)
Parameter
NameDescription
otherScopeLifecycleState
Returns
TypeDescription
ScopeLifecycleState.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ScopeLifecycleState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScopeLifecycleState.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ScopeLifecycleState.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ScopeLifecycleState.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScopeLifecycleState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueScopeLifecycleState.Code

The code to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ScopeLifecycleState.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ScopeLifecycleState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ScopeLifecycleState.Builder
Overrides

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

public ScopeLifecycleState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ScopeLifecycleState.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ScopeLifecycleState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ScopeLifecycleState.Builder
Overrides