Class Feature.Builder (1.30.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.cloud.gkehub.v1alpha.Feature

Implements

FeatureOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Feature build()
Returns
TypeDescription
Feature

buildPartial()

public Feature buildPartial()
Returns
TypeDescription
Feature

clear()

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

clearCreateTime()

public Feature.Builder clearCreateTime()

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Feature.Builder

clearDeleteTime()

public Feature.Builder clearDeleteTime()

Output only. When the Feature resource was deleted.

.google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Feature.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public Feature.Builder clearLabels()
Returns
TypeDescription
Feature.Builder

clearMembershipSpecs()

public Feature.Builder clearMembershipSpecs()
Returns
TypeDescription
Feature.Builder

clearMembershipStates()

public Feature.Builder clearMembershipStates()
Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Feature.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceState()

public Feature.Builder clearResourceState()

Output only. State of the Feature resource itself.

.google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Feature.Builder

clearSpec()

public Feature.Builder clearSpec()

Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused.

.google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Feature.Builder

clearState()

public Feature.Builder clearState()

Output only. The Hub-wide Feature state.

.google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Feature.Builder

clearUpdateTime()

public Feature.Builder clearUpdateTime()

Output only. When the Feature resource was last updated.

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

Returns
TypeDescription
Feature.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

GCP labels for this Feature.

map<string, string> labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsMembershipSpecs(String key)

public boolean containsMembershipSpecs(String key)

Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused.

The keys indicate which Membership the configuration is for, in the form:

 projects/{p}/locations/{l}/memberships/{m}

Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project.

{p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.

map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
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.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Feature getDefaultInstanceForType()
Returns
TypeDescription
Feature

getDeleteTime()

public Timestamp getDeleteTime()

Output only. When the Feature resource was deleted.

.google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

Output only. When the Feature resource was deleted.

.google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. When the Feature resource was deleted.

.google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

GCP labels for this Feature.

map<string, string> labels = 2;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

GCP labels for this Feature.

map<string, string> labels = 2;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

GCP labels for this Feature.

map<string, string> labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMembershipSpecs()

public Map<String,MembershipFeatureSpec> getMembershipSpecs()
Returns
TypeDescription
Map<String,MembershipFeatureSpec>

getMembershipSpecsCount()

public int getMembershipSpecsCount()

Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused.

The keys indicate which Membership the configuration is for, in the form:

 projects/{p}/locations/{l}/memberships/{m}

Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project.

{p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.

map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getMembershipSpecsMap()

public Map<String,MembershipFeatureSpec> getMembershipSpecsMap()

Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused.

The keys indicate which Membership the configuration is for, in the form:

 projects/{p}/locations/{l}/memberships/{m}

Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project.

{p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.

map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,MembershipFeatureSpec>

getMembershipSpecsOrDefault(String key, MembershipFeatureSpec defaultValue)

public MembershipFeatureSpec getMembershipSpecsOrDefault(String key, MembershipFeatureSpec defaultValue)

Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused.

The keys indicate which Membership the configuration is for, in the form:

 projects/{p}/locations/{l}/memberships/{m}

Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project.

{p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.

map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueMembershipFeatureSpec
Returns
TypeDescription
MembershipFeatureSpec

getMembershipSpecsOrThrow(String key)

public MembershipFeatureSpec getMembershipSpecsOrThrow(String key)

Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused.

The keys indicate which Membership the configuration is for, in the form:

 projects/{p}/locations/{l}/memberships/{m}

Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project.

{p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.

map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
MembershipFeatureSpec

getMembershipStates()

public Map<String,MembershipFeatureState> getMembershipStates()
Returns
TypeDescription
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.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
keyString
defaultValueMembershipFeatureState
Returns
TypeDescription
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.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
MembershipFeatureState

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableMembershipSpecs()

public Map<String,MembershipFeatureSpec> getMutableMembershipSpecs()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,MembershipFeatureSpec>

getMutableMembershipStates()

public Map<String,MembershipFeatureState> getMutableMembershipStates()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,MembershipFeatureState>

getName()

public String getName()

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

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getResourceState()

public FeatureResourceState getResourceState()

Output only. State of the Feature resource itself.

.google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
FeatureResourceState

The resourceState.

getResourceStateBuilder()

public FeatureResourceState.Builder getResourceStateBuilder()

Output only. State of the Feature resource itself.

.google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
FeatureResourceState.Builder

getResourceStateOrBuilder()

public FeatureResourceStateOrBuilder getResourceStateOrBuilder()

Output only. State of the Feature resource itself.

.google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
FeatureResourceStateOrBuilder

getSpec()

public CommonFeatureSpec getSpec()

Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused.

.google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CommonFeatureSpec

The spec.

getSpecBuilder()

public CommonFeatureSpec.Builder getSpecBuilder()

Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused.

.google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CommonFeatureSpec.Builder

getSpecOrBuilder()

public CommonFeatureSpecOrBuilder getSpecOrBuilder()

Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused.

.google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CommonFeatureSpecOrBuilder

getState()

public CommonFeatureState getState()

Output only. The Hub-wide Feature state.

.google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CommonFeatureState

The state.

getStateBuilder()

public CommonFeatureState.Builder getStateBuilder()

Output only. The Hub-wide Feature state.

.google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CommonFeatureState.Builder

getStateOrBuilder()

public CommonFeatureStateOrBuilder getStateOrBuilder()

Output only. The Hub-wide Feature state.

.google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CommonFeatureStateOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. When the Feature resource was last updated.

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. When the Feature resource was last updated.

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

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. When the Feature resource was last updated.

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

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the deleteTime field is set.

hasResourceState()

public boolean hasResourceState()

Output only. State of the Feature resource itself.

.google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the resourceState field is set.

hasSpec()

public boolean hasSpec()

Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused.

.google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the spec field is set.

hasState()

public boolean hasState()

Output only. The Hub-wide Feature state.

.google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Feature.Builder

mergeFrom(Feature other)

public Feature.Builder mergeFrom(Feature other)
Parameter
NameDescription
otherFeature
Returns
TypeDescription
Feature.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResourceState(FeatureResourceState value)

public Feature.Builder mergeResourceState(FeatureResourceState value)

Output only. State of the Feature resource itself.

.google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueFeatureResourceState
Returns
TypeDescription
Feature.Builder

mergeSpec(CommonFeatureSpec value)

public Feature.Builder mergeSpec(CommonFeatureSpec value)

Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused.

.google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueCommonFeatureSpec
Returns
TypeDescription
Feature.Builder

mergeState(CommonFeatureState value)

public Feature.Builder mergeState(CommonFeatureState value)

Output only. The Hub-wide Feature state.

.google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueCommonFeatureState
Returns
TypeDescription
Feature.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Feature.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Feature.Builder

putAllMembershipSpecs(Map<String,MembershipFeatureSpec> values)

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

Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused.

The keys indicate which Membership the configuration is for, in the form:

 projects/{p}/locations/{l}/memberships/{m}

Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project.

{p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.

map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,MembershipFeatureSpec>
Returns
TypeDescription
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.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesMap<String,MembershipFeatureState>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
Feature.Builder

putMembershipSpecs(String key, MembershipFeatureSpec value)

public Feature.Builder putMembershipSpecs(String key, MembershipFeatureSpec value)

Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused.

The keys indicate which Membership the configuration is for, in the form:

 projects/{p}/locations/{l}/memberships/{m}

Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project.

{p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.

map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueMembershipFeatureSpec
Returns
TypeDescription
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.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
keyString
valueMembershipFeatureState
Returns
TypeDescription
Feature.Builder

removeLabels(String key)

public Feature.Builder removeLabels(String key)

GCP labels for this Feature.

map<string, string> labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
Feature.Builder

removeMembershipSpecs(String key)

public Feature.Builder removeMembershipSpecs(String key)

Optional. Membership-specific configuration for this Feature. If this Feature does not support any per-Membership configuration, this field may be unused.

The keys indicate which Membership the configuration is for, in the form:

 projects/{p}/locations/{l}/memberships/{m}

Where {p} is the project, {l} is a valid location and {m} is a valid Membership in this project at that location. {p} WILL match the Feature's project.

{p} will always be returned as the project number, but the project ID is also accepted during input. If the same Membership is specified in the map twice (using the project ID form, and the project number form), exactly ONE of the entries will be saved, with no guarantees as to which. For this reason, it is recommended the same format be used for all entries when mutating a Feature.

map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
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.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Feature.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Feature.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Feature.Builder
Overrides

setResourceState(FeatureResourceState value)

public Feature.Builder setResourceState(FeatureResourceState value)

Output only. State of the Feature resource itself.

.google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueFeatureResourceState
Returns
TypeDescription
Feature.Builder

setResourceState(FeatureResourceState.Builder builderForValue)

public Feature.Builder setResourceState(FeatureResourceState.Builder builderForValue)

Output only. State of the Feature resource itself.

.google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueFeatureResourceState.Builder
Returns
TypeDescription
Feature.Builder

setSpec(CommonFeatureSpec value)

public Feature.Builder setSpec(CommonFeatureSpec value)

Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused.

.google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueCommonFeatureSpec
Returns
TypeDescription
Feature.Builder

setSpec(CommonFeatureSpec.Builder builderForValue)

public Feature.Builder setSpec(CommonFeatureSpec.Builder builderForValue)

Optional. Hub-wide Feature configuration. If this Feature does not support any Hub-wide configuration, this field may be unused.

.google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueCommonFeatureSpec.Builder
Returns
TypeDescription
Feature.Builder

setState(CommonFeatureState value)

public Feature.Builder setState(CommonFeatureState value)

Output only. The Hub-wide Feature state.

.google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueCommonFeatureState
Returns
TypeDescription
Feature.Builder

setState(CommonFeatureState.Builder builderForValue)

public Feature.Builder setState(CommonFeatureState.Builder builderForValue)

Output only. The Hub-wide Feature state.

.google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueCommonFeatureState.Builder
Returns
TypeDescription
Feature.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Feature.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Feature.Builder