Class Feature.Builder (0.15.0)

public static final class Feature.Builder extends GeneratedMessageV3.Builder<Feature.Builder> implements FeatureOrBuilder

Feature represents the settings and status of any Hub Feature.

Protobuf type google.events.cloud.gkehub.v1.Feature

Implements

FeatureOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Feature build()
Returns
Type Description
Feature

buildPartial()

public Feature buildPartial()
Returns
Type Description
Feature

clear()

public Feature.Builder clear()
Returns
Type Description
Feature.Builder
Overrides

clearCreateTime()

public Feature.Builder clearCreateTime()

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8;

Returns
Type Description
Feature.Builder

clearDeleteTime()

public Feature.Builder clearDeleteTime()

Output only. When the Feature resource was deleted.

.google.protobuf.Timestamp delete_time = 10;

Returns
Type Description
Feature.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public Feature.Builder clearLabels()
Returns
Type Description
Feature.Builder

clearMembershipStates()

public Feature.Builder clearMembershipStates()
Returns
Type Description
Feature.Builder

clearName()

public Feature.Builder clearName()

Output only. The full, unique name of this Feature resource in the format projects/*/locations/*/features/*.

string name = 1;

Returns
Type Description
Feature.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceState()

public Feature.Builder clearResourceState()

Output only. State of the Feature resource itself.

.google.events.cloud.gkehub.v1.FeatureResourceState resource_state = 3;

Returns
Type Description
Feature.Builder

clearScopeStates()

public Feature.Builder clearScopeStates()
Returns
Type Description
Feature.Builder

clearState()

public Feature.Builder clearState()

Output only. The Hub-wide Feature state.

.google.events.cloud.gkehub.v1.CommonFeatureState state = 6;

Returns
Type Description
Feature.Builder

clearUpdateTime()

public Feature.Builder clearUpdateTime()

Output only. When the Feature resource was last updated.

.google.protobuf.Timestamp update_time = 9;

Returns
Type Description
Feature.Builder

clone()

public Feature.Builder clone()
Returns
Type Description
Feature.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

GCP labels for this Feature.

map<string, string> labels = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

containsMembershipStates(String key)

public boolean containsMembershipStates(String key)

Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature's project number.

map<string, .google.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;

Parameter
Name Description
key String
Returns
Type Description
boolean

containsScopeStates(String key)

public boolean containsScopeStates(String key)

Output only. Scope-specific Feature status. If this Feature does report any per-Scope status, this field may be unused. The keys indicate which Scope the state is for, in the form: projects/{p}/locations/global/scopes/{s} Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.

map<string, .google.events.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Feature getDefaultInstanceForType()
Returns
Type Description
Feature

getDeleteTime()

public Timestamp getDeleteTime()

Output only. When the Feature resource was deleted.

.google.protobuf.Timestamp delete_time = 10;

Returns
Type Description
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

Output only. When the Feature resource was deleted.

.google.protobuf.Timestamp delete_time = 10;

Returns
Type Description
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. When the Feature resource was deleted.

.google.protobuf.Timestamp delete_time = 10;

Returns
Type Description
TimestampOrBuilder

getDescriptorForType()

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

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

GCP labels for this Feature.

map<string, string> labels = 2;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

GCP labels for this Feature.

map<string, string> labels = 2;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

GCP labels for this Feature.

map<string, string> labels = 2;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

GCP labels for this Feature.

map<string, string> labels = 2;

Parameter
Name Description
key String
Returns
Type Description
String

getMembershipStates()

public Map<String,MembershipFeatureState> getMembershipStates()
Returns
Type Description
Map<String,MembershipFeatureState>

getMembershipStatesCount()

public int getMembershipStatesCount()

Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature's project number.

map<string, .google.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;

Returns
Type Description
int

getMembershipStatesMap()

public Map<String,MembershipFeatureState> getMembershipStatesMap()

Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature's project number.

map<string, .google.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;

Returns
Type Description
Map<String,MembershipFeatureState>

getMembershipStatesOrDefault(String key, MembershipFeatureState defaultValue)

public MembershipFeatureState getMembershipStatesOrDefault(String key, MembershipFeatureState defaultValue)

Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature's project number.

map<string, .google.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;

Parameters
Name Description
key String
defaultValue MembershipFeatureState
Returns
Type Description
MembershipFeatureState

getMembershipStatesOrThrow(String key)

public MembershipFeatureState getMembershipStatesOrThrow(String key)

Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature's project number.

map<string, .google.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;

Parameter
Name Description
key String
Returns
Type Description
MembershipFeatureState

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableMembershipStates()

public Map<String,MembershipFeatureState> getMutableMembershipStates()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,MembershipFeatureState>

getMutableScopeStates()

public Map<String,ScopeFeatureState> getMutableScopeStates()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ScopeFeatureState>

getName()

public String getName()

Output only. The full, unique name of this Feature resource in the format projects/*/locations/*/features/*.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The full, unique name of this Feature resource in the format projects/*/locations/*/features/*.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getResourceState()

public FeatureResourceState getResourceState()

Output only. State of the Feature resource itself.

.google.events.cloud.gkehub.v1.FeatureResourceState resource_state = 3;

Returns
Type Description
FeatureResourceState

The resourceState.

getResourceStateBuilder()

public FeatureResourceState.Builder getResourceStateBuilder()

Output only. State of the Feature resource itself.

.google.events.cloud.gkehub.v1.FeatureResourceState resource_state = 3;

Returns
Type Description
FeatureResourceState.Builder

getResourceStateOrBuilder()

public FeatureResourceStateOrBuilder getResourceStateOrBuilder()

Output only. State of the Feature resource itself.

.google.events.cloud.gkehub.v1.FeatureResourceState resource_state = 3;

Returns
Type Description
FeatureResourceStateOrBuilder

getScopeStates()

public Map<String,ScopeFeatureState> getScopeStates()

Use #getScopeStatesMap() instead.

Returns
Type Description
Map<String,ScopeFeatureState>

getScopeStatesCount()

public int getScopeStatesCount()

Output only. Scope-specific Feature status. If this Feature does report any per-Scope status, this field may be unused. The keys indicate which Scope the state is for, in the form: projects/{p}/locations/global/scopes/{s} Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.

map<string, .google.events.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13;

Returns
Type Description
int

getScopeStatesMap()

public Map<String,ScopeFeatureState> getScopeStatesMap()

Output only. Scope-specific Feature status. If this Feature does report any per-Scope status, this field may be unused. The keys indicate which Scope the state is for, in the form: projects/{p}/locations/global/scopes/{s} Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.

map<string, .google.events.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13;

Returns
Type Description
Map<String,ScopeFeatureState>

getScopeStatesOrDefault(String key, ScopeFeatureState defaultValue)

public ScopeFeatureState getScopeStatesOrDefault(String key, ScopeFeatureState defaultValue)

Output only. Scope-specific Feature status. If this Feature does report any per-Scope status, this field may be unused. The keys indicate which Scope the state is for, in the form: projects/{p}/locations/global/scopes/{s} Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.

map<string, .google.events.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13;

Parameters
Name Description
key String
defaultValue ScopeFeatureState
Returns
Type Description
ScopeFeatureState

getScopeStatesOrThrow(String key)

public ScopeFeatureState getScopeStatesOrThrow(String key)

Output only. Scope-specific Feature status. If this Feature does report any per-Scope status, this field may be unused. The keys indicate which Scope the state is for, in the form: projects/{p}/locations/global/scopes/{s} Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.

map<string, .google.events.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13;

Parameter
Name Description
key String
Returns
Type Description
ScopeFeatureState

getState()

public CommonFeatureState getState()

Output only. The Hub-wide Feature state.

.google.events.cloud.gkehub.v1.CommonFeatureState state = 6;

Returns
Type Description
CommonFeatureState

The state.

getStateBuilder()

public CommonFeatureState.Builder getStateBuilder()

Output only. The Hub-wide Feature state.

.google.events.cloud.gkehub.v1.CommonFeatureState state = 6;

Returns
Type Description
CommonFeatureState.Builder

getStateOrBuilder()

public CommonFeatureStateOrBuilder getStateOrBuilder()

Output only. The Hub-wide Feature state.

.google.events.cloud.gkehub.v1.CommonFeatureState state = 6;

Returns
Type Description
CommonFeatureStateOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. When the Feature resource was last updated.

.google.protobuf.Timestamp update_time = 9;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. When the Feature resource was last updated.

.google.protobuf.Timestamp update_time = 9;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. When the Feature resource was last updated.

.google.protobuf.Timestamp update_time = 9;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8;

Returns
Type Description
boolean

Whether the createTime field is set.

hasDeleteTime()

public boolean hasDeleteTime()

Output only. When the Feature resource was deleted.

.google.protobuf.Timestamp delete_time = 10;

Returns
Type Description
boolean

Whether the deleteTime field is set.

hasResourceState()

public boolean hasResourceState()

Output only. State of the Feature resource itself.

.google.events.cloud.gkehub.v1.FeatureResourceState resource_state = 3;

Returns
Type Description
boolean

Whether the resourceState field is set.

hasState()

public boolean hasState()

Output only. The Hub-wide Feature state.

.google.events.cloud.gkehub.v1.CommonFeatureState state = 6;

Returns
Type Description
boolean

Whether the state field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. When the Feature resource was last updated.

.google.protobuf.Timestamp update_time = 9;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Feature.Builder mergeCreateTime(Timestamp value)

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8;

Parameter
Name Description
value Timestamp
Returns
Type Description
Feature.Builder

mergeDeleteTime(Timestamp value)

public Feature.Builder mergeDeleteTime(Timestamp value)

Output only. When the Feature resource was deleted.

.google.protobuf.Timestamp delete_time = 10;

Parameter
Name Description
value Timestamp
Returns
Type Description
Feature.Builder

mergeFrom(Feature other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResourceState(FeatureResourceState value)

public Feature.Builder mergeResourceState(FeatureResourceState value)

Output only. State of the Feature resource itself.

.google.events.cloud.gkehub.v1.FeatureResourceState resource_state = 3;

Parameter
Name Description
value FeatureResourceState
Returns
Type Description
Feature.Builder

mergeState(CommonFeatureState value)

public Feature.Builder mergeState(CommonFeatureState value)

Output only. The Hub-wide Feature state.

.google.events.cloud.gkehub.v1.CommonFeatureState state = 6;

Parameter
Name Description
value CommonFeatureState
Returns
Type Description
Feature.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Feature.Builder mergeUpdateTime(Timestamp value)

Output only. When the Feature resource was last updated.

.google.protobuf.Timestamp update_time = 9;

Parameter
Name Description
value Timestamp
Returns
Type Description
Feature.Builder

putAllLabels(Map<String,String> values)

public Feature.Builder putAllLabels(Map<String,String> values)

GCP labels for this Feature.

map<string, string> labels = 2;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Feature.Builder

putAllMembershipStates(Map<String,MembershipFeatureState> values)

public Feature.Builder putAllMembershipStates(Map<String,MembershipFeatureState> values)

Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature's project number.

map<string, .google.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;

Parameter
Name Description
values Map<String,MembershipFeatureState>
Returns
Type Description
Feature.Builder

putAllScopeStates(Map<String,ScopeFeatureState> values)

public Feature.Builder putAllScopeStates(Map<String,ScopeFeatureState> values)

Output only. Scope-specific Feature status. If this Feature does report any per-Scope status, this field may be unused. The keys indicate which Scope the state is for, in the form: projects/{p}/locations/global/scopes/{s} Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.

map<string, .google.events.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13;

Parameter
Name Description
values Map<String,ScopeFeatureState>
Returns
Type Description
Feature.Builder

putLabels(String key, String value)

public Feature.Builder putLabels(String key, String value)

GCP labels for this Feature.

map<string, string> labels = 2;

Parameters
Name Description
key String
value String
Returns
Type Description
Feature.Builder

putMembershipStates(String key, MembershipFeatureState value)

public Feature.Builder putMembershipStates(String key, MembershipFeatureState value)

Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature's project number.

map<string, .google.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;

Parameters
Name Description
key String
value MembershipFeatureState
Returns
Type Description
Feature.Builder

putScopeStates(String key, ScopeFeatureState value)

public Feature.Builder putScopeStates(String key, ScopeFeatureState value)

Output only. Scope-specific Feature status. If this Feature does report any per-Scope status, this field may be unused. The keys indicate which Scope the state is for, in the form: projects/{p}/locations/global/scopes/{s} Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.

map<string, .google.events.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13;

Parameters
Name Description
key String
value ScopeFeatureState
Returns
Type Description
Feature.Builder

removeLabels(String key)

public Feature.Builder removeLabels(String key)

GCP labels for this Feature.

map<string, string> labels = 2;

Parameter
Name Description
key String
Returns
Type Description
Feature.Builder

removeMembershipStates(String key)

public Feature.Builder removeMembershipStates(String key)

Output only. Membership-specific Feature status. If this Feature does report any per-Membership status, this field may be unused. The keys indicate which Membership the state is for, in the form: projects/{p}/locations/{l}/memberships/{m} Where {p} is the project number, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} MUST match the Feature's project number.

map<string, .google.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;

Parameter
Name Description
key String
Returns
Type Description
Feature.Builder

removeScopeStates(String key)

public Feature.Builder removeScopeStates(String key)

Output only. Scope-specific Feature status. If this Feature does report any per-Scope status, this field may be unused. The keys indicate which Scope the state is for, in the form: projects/{p}/locations/global/scopes/{s} Where {p} is the project, {s} is a valid Scope in this project. {p} WILL match the Feature's project.

map<string, .google.events.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13;

Parameter
Name Description
key String
Returns
Type Description
Feature.Builder

setCreateTime(Timestamp value)

public Feature.Builder setCreateTime(Timestamp value)

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8;

Parameter
Name Description
value Timestamp
Returns
Type Description
Feature.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Feature.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Feature.Builder

setDeleteTime(Timestamp value)

public Feature.Builder setDeleteTime(Timestamp value)

Output only. When the Feature resource was deleted.

.google.protobuf.Timestamp delete_time = 10;

Parameter
Name Description
value Timestamp
Returns
Type Description
Feature.Builder

setDeleteTime(Timestamp.Builder builderForValue)

public Feature.Builder setDeleteTime(Timestamp.Builder builderForValue)

Output only. When the Feature resource was deleted.

.google.protobuf.Timestamp delete_time = 10;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Feature.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Feature.Builder setName(String value)

Output only. The full, unique name of this Feature resource in the format projects/*/locations/*/features/*.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Feature.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Feature.Builder setNameBytes(ByteString value)

Output only. The full, unique name of this Feature resource in the format projects/*/locations/*/features/*.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Feature.Builder

This builder for chaining.

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

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

setResourceState(FeatureResourceState value)

public Feature.Builder setResourceState(FeatureResourceState value)

Output only. State of the Feature resource itself.

.google.events.cloud.gkehub.v1.FeatureResourceState resource_state = 3;

Parameter
Name Description
value FeatureResourceState
Returns
Type Description
Feature.Builder

setResourceState(FeatureResourceState.Builder builderForValue)

public Feature.Builder setResourceState(FeatureResourceState.Builder builderForValue)

Output only. State of the Feature resource itself.

.google.events.cloud.gkehub.v1.FeatureResourceState resource_state = 3;

Parameter
Name Description
builderForValue FeatureResourceState.Builder
Returns
Type Description
Feature.Builder

setState(CommonFeatureState value)

public Feature.Builder setState(CommonFeatureState value)

Output only. The Hub-wide Feature state.

.google.events.cloud.gkehub.v1.CommonFeatureState state = 6;

Parameter
Name Description
value CommonFeatureState
Returns
Type Description
Feature.Builder

setState(CommonFeatureState.Builder builderForValue)

public Feature.Builder setState(CommonFeatureState.Builder builderForValue)

Output only. The Hub-wide Feature state.

.google.events.cloud.gkehub.v1.CommonFeatureState state = 6;

Parameter
Name Description
builderForValue CommonFeatureState.Builder
Returns
Type Description
Feature.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Feature.Builder setUpdateTime(Timestamp value)

Output only. When the Feature resource was last updated.

.google.protobuf.Timestamp update_time = 9;

Parameter
Name Description
value Timestamp
Returns
Type Description
Feature.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Feature.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. When the Feature resource was last updated.

.google.protobuf.Timestamp update_time = 9;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Feature.Builder