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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ScopeLifecycleState.BuilderImplements
ScopeLifecycleStateOrBuilderStatic 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 |
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 |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public ScopeLifecycleState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
ScopeLifecycleState.Builder |
clone()
public ScopeLifecycleState.Builder clone()
Returns | |
---|---|
Type | Description |
ScopeLifecycleState.Builder |
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 |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ScopeLifecycleState.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
ScopeLifecycleState.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ScopeLifecycleState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ScopeLifecycleState.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final ScopeLifecycleState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ScopeLifecycleState.Builder |