Class MembershipState.Builder

public static final class MembershipState.Builder extends GeneratedMessageV3.Builder<MembershipState.Builder> implements MembershipStateOrBuilder

State of the Membership resource.

Protobuf type google.cloud.gkehub.v1beta1.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.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MembershipState.Builder

This builder for chaining.

clearDescription()

public MembershipState.Builder clearDescription()

This field is never set by the Hub Service.

string description = 2 [deprecated = true];

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

clearUpdateTime()

public MembershipState.Builder clearUpdateTime()

This field is never set by the Hub Service.

.google.protobuf.Timestamp update_time = 3 [deprecated = true];

Returns
TypeDescription
MembershipState.Builder

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

getDescription()

public String getDescription()

This field is never set by the Hub Service.

string description = 2 [deprecated = true];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

This field is never set by the Hub Service.

string description = 2 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

This field is never set by the Hub Service.

.google.protobuf.Timestamp update_time = 3 [deprecated = true];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

This field is never set by the Hub Service.

.google.protobuf.Timestamp update_time = 3 [deprecated = true];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

This field is never set by the Hub Service.

.google.protobuf.Timestamp update_time = 3 [deprecated = true];

Returns
TypeDescription
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

This field is never set by the Hub Service.

.google.protobuf.Timestamp update_time = 3 [deprecated = true];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

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

mergeUpdateTime(Timestamp value)

public MembershipState.Builder mergeUpdateTime(Timestamp value)

This field is never set by the Hub Service.

.google.protobuf.Timestamp update_time = 3 [deprecated = true];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MembershipState.Builder

setCode(MembershipState.Code value)

public MembershipState.Builder setCode(MembershipState.Code value)

Output only. The current state of the Membership resource.

.google.cloud.gkehub.v1beta1.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.v1beta1.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.

setDescription(String value)

public MembershipState.Builder setDescription(String value)

This field is never set by the Hub Service.

string description = 2 [deprecated = true];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
MembershipState.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public MembershipState.Builder setDescriptionBytes(ByteString value)

This field is never set by the Hub Service.

string description = 2 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for description 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

setUpdateTime(Timestamp value)

public MembershipState.Builder setUpdateTime(Timestamp value)

This field is never set by the Hub Service.

.google.protobuf.Timestamp update_time = 3 [deprecated = true];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
MembershipState.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public MembershipState.Builder setUpdateTime(Timestamp.Builder builderForValue)

This field is never set by the Hub Service.

.google.protobuf.Timestamp update_time = 3 [deprecated = true];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
MembershipState.Builder