Class MembershipState.Builder (0.5.4)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MembershipState build()
Returns
TypeDescription
MembershipState

buildPartial()

public MembershipState buildPartial()
Returns
TypeDescription
MembershipState

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

The code.

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

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public MembershipState getDefaultInstanceForType()
Returns
TypeDescription
MembershipState

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

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

public MembershipState.Builder mergeFrom(MembershipState other)
Parameter
NameDescription
otherMembershipState
Returns
TypeDescription
MembershipState.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The code to set.

Returns
TypeDescription
MembershipState.Builder

This builder for chaining.

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

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

Returns
TypeDescription
MembershipState.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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