Class Cluster.ConnectionState.Builder (0.51.0)

public static final class Cluster.ConnectionState.Builder extends GeneratedMessageV3.Builder<Cluster.ConnectionState.Builder> implements Cluster.ConnectionStateOrBuilder

ConnectionState holds the current connection state from the cluster to Google.

Protobuf type google.cloud.edgecontainer.v1.Cluster.ConnectionState

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Cluster.ConnectionState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Cluster.ConnectionState.Builder
Overrides

build()

public Cluster.ConnectionState build()
Returns
Type Description
Cluster.ConnectionState

buildPartial()

public Cluster.ConnectionState buildPartial()
Returns
Type Description
Cluster.ConnectionState

clear()

public Cluster.ConnectionState.Builder clear()
Returns
Type Description
Cluster.ConnectionState.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Cluster.ConnectionState.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Cluster.ConnectionState.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Cluster.ConnectionState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Cluster.ConnectionState.Builder
Overrides

clearState()

public Cluster.ConnectionState.Builder clearState()

Output only. The current connection state.

.google.cloud.edgecontainer.v1.Cluster.ConnectionState.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Cluster.ConnectionState.Builder

This builder for chaining.

clearUpdateTime()

public Cluster.ConnectionState.Builder clearUpdateTime()

Output only. The time when the connection state was last changed.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Cluster.ConnectionState.Builder

clone()

public Cluster.ConnectionState.Builder clone()
Returns
Type Description
Cluster.ConnectionState.Builder
Overrides

getDefaultInstanceForType()

public Cluster.ConnectionState getDefaultInstanceForType()
Returns
Type Description
Cluster.ConnectionState

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getState()

public Cluster.ConnectionState.State getState()

Output only. The current connection state.

.google.cloud.edgecontainer.v1.Cluster.ConnectionState.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Cluster.ConnectionState.State

The state.

getStateValue()

public int getStateValue()

Output only. The current connection state.

.google.cloud.edgecontainer.v1.Cluster.ConnectionState.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the connection state was last changed.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when the connection state was last changed.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the connection state was last changed.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the connection state was last changed.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Cluster.ConnectionState other)

public Cluster.ConnectionState.Builder mergeFrom(Cluster.ConnectionState other)
Parameter
Name Description
other Cluster.ConnectionState
Returns
Type Description
Cluster.ConnectionState.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Cluster.ConnectionState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.ConnectionState.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Cluster.ConnectionState.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Cluster.ConnectionState.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.ConnectionState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Cluster.ConnectionState.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Cluster.ConnectionState.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the connection state was last changed.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Cluster.ConnectionState.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Cluster.ConnectionState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Cluster.ConnectionState.Builder
Overrides

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

public Cluster.ConnectionState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Cluster.ConnectionState.Builder
Overrides

setState(Cluster.ConnectionState.State value)

public Cluster.ConnectionState.Builder setState(Cluster.ConnectionState.State value)

Output only. The current connection state.

.google.cloud.edgecontainer.v1.Cluster.ConnectionState.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Cluster.ConnectionState.State

The state to set.

Returns
Type Description
Cluster.ConnectionState.Builder

This builder for chaining.

setStateValue(int value)

public Cluster.ConnectionState.Builder setStateValue(int value)

Output only. The current connection state.

.google.cloud.edgecontainer.v1.Cluster.ConnectionState.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
Cluster.ConnectionState.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.ConnectionState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Cluster.ConnectionState.Builder
Overrides

setUpdateTime(Timestamp value)

public Cluster.ConnectionState.Builder setUpdateTime(Timestamp value)

Output only. The time when the connection state was last changed.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Cluster.ConnectionState.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Cluster.ConnectionState.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the connection state was last changed.

.google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Cluster.ConnectionState.Builder