public static final class MembershipState.Builder extends GeneratedMessageV3.Builder<MembershipState.Builder> implements MembershipStateOrBuilder
MembershipState describes the state of a Membership resource.
Protobuf type google.cloud.gkehub.v1alpha2.MembershipState
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MembershipState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public MembershipState build()
Returns
buildPartial()
public MembershipState buildPartial()
Returns
clear()
public MembershipState.Builder clear()
Returns
Overrides
clearCode()
public MembershipState.Builder clearCode()
Output only. The current state of the Membership resource.
.google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
clearField(Descriptors.FieldDescriptor field)
public MembershipState.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public MembershipState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public MembershipState.Builder clone()
Returns
Overrides
getCode()
public MembershipState.Code getCode()
Output only. The current state of the Membership resource.
.google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getCodeValue()
public int getCodeValue()
Output only. The current state of the Membership resource.
.google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
int | The enum numeric value on the wire for code.
|
getDefaultInstanceForType()
public MembershipState getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(MembershipState other)
public MembershipState.Builder mergeFrom(MembershipState other)
Parameter
Returns
public MembershipState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MembershipState.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MembershipState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setCode(MembershipState.Code value)
public MembershipState.Builder setCode(MembershipState.Code value)
Output only. The current state of the Membership resource.
.google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
setCodeValue(int value)
public MembershipState.Builder setCodeValue(int value)
Output only. The current state of the Membership resource.
.google.cloud.gkehub.v1alpha2.MembershipState.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
setField(Descriptors.FieldDescriptor field, Object value)
public MembershipState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MembershipState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MembershipState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides