Class FeatureState.Builder (1.12.0)

public static final class FeatureState.Builder extends GeneratedMessageV3.Builder<FeatureState.Builder> implements FeatureStateOrBuilder

FeatureState describes the high-level state of a Feature. It may be used to describe a Feature's state at the environ-level, or per-membershop, depending on the context.

Protobuf type google.cloud.gkehub.v1beta.FeatureState

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FeatureState build()
Returns
TypeDescription
FeatureState

buildPartial()

public FeatureState buildPartial()
Returns
TypeDescription
FeatureState

clear()

public FeatureState.Builder clear()
Returns
TypeDescription
FeatureState.Builder
Overrides

clearCode()

public FeatureState.Builder clearCode()

The high-level, machine-readable status of this Feature.

.google.cloud.gkehub.v1beta.FeatureState.Code code = 1;

Returns
TypeDescription
FeatureState.Builder

This builder for chaining.

clearDescription()

public FeatureState.Builder clearDescription()

A human-readable description of the current status.

string description = 2;

Returns
TypeDescription
FeatureState.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public FeatureState.Builder clearUpdateTime()

The time this status and any related Feature-specific details were updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
FeatureState.Builder

clone()

public FeatureState.Builder clone()
Returns
TypeDescription
FeatureState.Builder
Overrides

getCode()

public FeatureState.Code getCode()

The high-level, machine-readable status of this Feature.

.google.cloud.gkehub.v1beta.FeatureState.Code code = 1;

Returns
TypeDescription
FeatureState.Code

The code.

getCodeValue()

public int getCodeValue()

The high-level, machine-readable status of this Feature.

.google.cloud.gkehub.v1beta.FeatureState.Code code = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for code.

getDefaultInstanceForType()

public FeatureState getDefaultInstanceForType()
Returns
TypeDescription
FeatureState

getDescription()

public String getDescription()

A human-readable description of the current status.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A human-readable description of the current status.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

The time this status and any related Feature-specific details were updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

The time this status and any related Feature-specific details were updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The time this status and any related Feature-specific details were updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

The time this status and any related Feature-specific details were updated.

.google.protobuf.Timestamp update_time = 3;

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

public FeatureState.Builder mergeFrom(FeatureState other)
Parameter
NameDescription
otherFeatureState
Returns
TypeDescription
FeatureState.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FeatureState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FeatureState.Builder
Overrides

mergeUpdateTime(Timestamp value)

public FeatureState.Builder mergeUpdateTime(Timestamp value)

The time this status and any related Feature-specific details were updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
FeatureState.Builder

setCode(FeatureState.Code value)

public FeatureState.Builder setCode(FeatureState.Code value)

The high-level, machine-readable status of this Feature.

.google.cloud.gkehub.v1beta.FeatureState.Code code = 1;

Parameter
NameDescription
valueFeatureState.Code

The code to set.

Returns
TypeDescription
FeatureState.Builder

This builder for chaining.

setCodeValue(int value)

public FeatureState.Builder setCodeValue(int value)

The high-level, machine-readable status of this Feature.

.google.cloud.gkehub.v1beta.FeatureState.Code code = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
FeatureState.Builder

This builder for chaining.

setDescription(String value)

public FeatureState.Builder setDescription(String value)

A human-readable description of the current status.

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
FeatureState.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public FeatureState.Builder setDescriptionBytes(ByteString value)

A human-readable description of the current status.

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
FeatureState.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public FeatureState.Builder setUpdateTime(Timestamp value)

The time this status and any related Feature-specific details were updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
FeatureState.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public FeatureState.Builder setUpdateTime(Timestamp.Builder builderForValue)

The time this status and any related Feature-specific details were updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
FeatureState.Builder