Package com.google.cloud.gkehub.v1alpha
Class Feature.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
- com.google.cloud.gkehub.v1alpha.Feature.Builder
-
- All Implemented Interfaces:
FeatureOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Feature
public static final class Feature.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder> implements FeatureOrBuilder
Feature represents the settings and status of any Hub Feature.
Protobuf typegoogle.cloud.gkehub.v1alpha.Feature
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Feature.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Feature
build()
Feature
buildPartial()
Feature.Builder
clear()
Feature.Builder
clearCreateTime()
Output only.Feature.Builder
clearDeleteTime()
Output only.Feature.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Feature.Builder
clearLabels()
Feature.Builder
clearMembershipSpecs()
Feature.Builder
clearMembershipStates()
Feature.Builder
clearName()
Output only.Feature.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Feature.Builder
clearResourceState()
Output only.Feature.Builder
clearSpec()
Optional.Feature.Builder
clearState()
Output only.Feature.Builder
clearUpdateTime()
Output only.Feature.Builder
clone()
boolean
containsLabels(String key)
GCP labels for this Feature.boolean
containsMembershipSpecs(String key)
Optional.boolean
containsMembershipStates(String key)
Output only.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.Feature
getDefaultInstanceForType()
com.google.protobuf.Timestamp
getDeleteTime()
Output only.com.google.protobuf.Timestamp.Builder
getDeleteTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getDeleteTimeOrBuilder()
Output only.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
GCP labels for this Feature.Map<String,String>
getLabelsMap()
GCP labels for this Feature.String
getLabelsOrDefault(String key, String defaultValue)
GCP labels for this Feature.String
getLabelsOrThrow(String key)
GCP labels for this Feature.Map<String,MembershipFeatureSpec>
getMembershipSpecs()
Deprecated.int
getMembershipSpecsCount()
Optional.Map<String,MembershipFeatureSpec>
getMembershipSpecsMap()
Optional.MembershipFeatureSpec
getMembershipSpecsOrDefault(String key, MembershipFeatureSpec defaultValue)
Optional.MembershipFeatureSpec
getMembershipSpecsOrThrow(String key)
Optional.Map<String,MembershipFeatureState>
getMembershipStates()
Deprecated.int
getMembershipStatesCount()
Output only.Map<String,MembershipFeatureState>
getMembershipStatesMap()
Output only.MembershipFeatureState
getMembershipStatesOrDefault(String key, MembershipFeatureState defaultValue)
Output only.MembershipFeatureState
getMembershipStatesOrThrow(String key)
Output only.Map<String,String>
getMutableLabels()
Deprecated.Map<String,MembershipFeatureSpec>
getMutableMembershipSpecs()
Deprecated.Map<String,MembershipFeatureState>
getMutableMembershipStates()
Deprecated.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.FeatureResourceState
getResourceState()
Output only.FeatureResourceState.Builder
getResourceStateBuilder()
Output only.FeatureResourceStateOrBuilder
getResourceStateOrBuilder()
Output only.CommonFeatureSpec
getSpec()
Optional.CommonFeatureSpec.Builder
getSpecBuilder()
Optional.CommonFeatureSpecOrBuilder
getSpecOrBuilder()
Optional.CommonFeatureState
getState()
Output only.CommonFeatureState.Builder
getStateBuilder()
Output only.CommonFeatureStateOrBuilder
getStateOrBuilder()
Output only.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.boolean
hasCreateTime()
Output only.boolean
hasDeleteTime()
Output only.boolean
hasResourceState()
Output only.boolean
hasSpec()
Optional.boolean
hasState()
Output only.boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Feature.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.Feature.Builder
mergeDeleteTime(com.google.protobuf.Timestamp value)
Output only.Feature.Builder
mergeFrom(Feature other)
Feature.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Feature.Builder
mergeFrom(com.google.protobuf.Message other)
Feature.Builder
mergeResourceState(FeatureResourceState value)
Output only.Feature.Builder
mergeSpec(CommonFeatureSpec value)
Optional.Feature.Builder
mergeState(CommonFeatureState value)
Output only.Feature.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Feature.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.Feature.Builder
putAllLabels(Map<String,String> values)
GCP labels for this Feature.Feature.Builder
putAllMembershipSpecs(Map<String,MembershipFeatureSpec> values)
Optional.Feature.Builder
putAllMembershipStates(Map<String,MembershipFeatureState> values)
Output only.Feature.Builder
putLabels(String key, String value)
GCP labels for this Feature.Feature.Builder
putMembershipSpecs(String key, MembershipFeatureSpec value)
Optional.Feature.Builder
putMembershipStates(String key, MembershipFeatureState value)
Output only.Feature.Builder
removeLabels(String key)
GCP labels for this Feature.Feature.Builder
removeMembershipSpecs(String key)
Optional.Feature.Builder
removeMembershipStates(String key)
Output only.Feature.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.Feature.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Feature.Builder
setDeleteTime(com.google.protobuf.Timestamp value)
Output only.Feature.Builder
setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Feature.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Feature.Builder
setName(String value)
Output only.Feature.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.Feature.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Feature.Builder
setResourceState(FeatureResourceState value)
Output only.Feature.Builder
setResourceState(FeatureResourceState.Builder builderForValue)
Output only.Feature.Builder
setSpec(CommonFeatureSpec value)
Optional.Feature.Builder
setSpec(CommonFeatureSpec.Builder builderForValue)
Optional.Feature.Builder
setState(CommonFeatureState value)
Output only.Feature.Builder
setState(CommonFeatureState.Builder builderForValue)
Output only.Feature.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Feature.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.Feature.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
clear
public Feature.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
getDefaultInstanceForType
public Feature getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Feature build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Feature buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Feature.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
setField
public Feature.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
clearField
public Feature.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
clearOneof
public Feature.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
setRepeatedField
public Feature.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
addRepeatedField
public Feature.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
mergeFrom
public Feature.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Feature.Builder>
-
mergeFrom
public Feature.Builder mergeFrom(Feature other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
mergeFrom
public Feature.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Feature.Builder>
- Throws:
IOException
-
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];
- Specified by:
getName
in interfaceFeatureOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];
- Specified by:
getNameBytes
in interfaceFeatureOrBuilder
- Returns:
- The bytes for name.
-
setName
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];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
public Feature.Builder setNameBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:FeatureOrBuilder
GCP labels for this Feature.
map<string, string> labels = 2;
- Specified by:
getLabelsCount
in interfaceFeatureOrBuilder
-
containsLabels
public boolean containsLabels(String key)
GCP labels for this Feature.
map<string, string> labels = 2;
- Specified by:
containsLabels
in interfaceFeatureOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceFeatureOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
GCP labels for this Feature.
map<string, string> labels = 2;
- Specified by:
getLabelsMap
in interfaceFeatureOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
GCP labels for this Feature.
map<string, string> labels = 2;
- Specified by:
getLabelsOrDefault
in interfaceFeatureOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
GCP labels for this Feature.
map<string, string> labels = 2;
- Specified by:
getLabelsOrThrow
in interfaceFeatureOrBuilder
-
clearLabels
public Feature.Builder clearLabels()
-
removeLabels
public Feature.Builder removeLabels(String key)
GCP labels for this Feature.
map<string, string> labels = 2;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Feature.Builder putLabels(String key, String value)
GCP labels for this Feature.
map<string, string> labels = 2;
-
putAllLabels
public Feature.Builder putAllLabels(Map<String,String> values)
GCP labels for this Feature.
map<string, string> labels = 2;
-
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];
- Specified by:
hasResourceState
in interfaceFeatureOrBuilder
- Returns:
- Whether the resourceState field is set.
-
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];
- Specified by:
getResourceState
in interfaceFeatureOrBuilder
- Returns:
- The resourceState.
-
setResourceState
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];
-
setResourceState
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];
-
mergeResourceState
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];
-
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];
-
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];
-
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];
- Specified by:
getResourceStateOrBuilder
in interfaceFeatureOrBuilder
-
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];
- Specified by:
hasSpec
in interfaceFeatureOrBuilder
- Returns:
- Whether the spec field is set.
-
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];
- Specified by:
getSpec
in interfaceFeatureOrBuilder
- Returns:
- The spec.
-
setSpec
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];
-
setSpec
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];
-
mergeSpec
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];
-
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];
-
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];
-
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];
- Specified by:
getSpecOrBuilder
in interfaceFeatureOrBuilder
-
getMembershipSpecsCount
public int getMembershipSpecsCount()
Description copied from interface:FeatureOrBuilder
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];
- Specified by:
getMembershipSpecsCount
in interfaceFeatureOrBuilder
-
containsMembershipSpecs
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];
- Specified by:
containsMembershipSpecs
in interfaceFeatureOrBuilder
-
getMembershipSpecs
@Deprecated public Map<String,MembershipFeatureSpec> getMembershipSpecs()
Deprecated.UsegetMembershipSpecsMap()
instead.- Specified by:
getMembershipSpecs
in interfaceFeatureOrBuilder
-
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];
- Specified by:
getMembershipSpecsMap
in interfaceFeatureOrBuilder
-
getMembershipSpecsOrDefault
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];
- Specified by:
getMembershipSpecsOrDefault
in interfaceFeatureOrBuilder
-
getMembershipSpecsOrThrow
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];
- Specified by:
getMembershipSpecsOrThrow
in interfaceFeatureOrBuilder
-
clearMembershipSpecs
public Feature.Builder clearMembershipSpecs()
-
removeMembershipSpecs
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];
-
getMutableMembershipSpecs
@Deprecated public Map<String,MembershipFeatureSpec> getMutableMembershipSpecs()
Deprecated.Use alternate mutation accessors instead.
-
putMembershipSpecs
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];
-
putAllMembershipSpecs
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];
-
hasState
public boolean hasState()
Output only. The Hub-wide Feature state.
.google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasState
in interfaceFeatureOrBuilder
- Returns:
- Whether the state field is set.
-
getState
public CommonFeatureState getState()
Output only. The Hub-wide Feature state.
.google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getState
in interfaceFeatureOrBuilder
- Returns:
- The state.
-
setState
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];
-
setState
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];
-
mergeState
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];
-
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];
-
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];
-
getStateOrBuilder
public CommonFeatureStateOrBuilder getStateOrBuilder()
Output only. The Hub-wide Feature state.
.google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateOrBuilder
in interfaceFeatureOrBuilder
-
getMembershipStatesCount
public int getMembershipStatesCount()
Description copied from interface:FeatureOrBuilder
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];
- Specified by:
getMembershipStatesCount
in interfaceFeatureOrBuilder
-
containsMembershipStates
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];
- Specified by:
containsMembershipStates
in interfaceFeatureOrBuilder
-
getMembershipStates
@Deprecated public Map<String,MembershipFeatureState> getMembershipStates()
Deprecated.UsegetMembershipStatesMap()
instead.- Specified by:
getMembershipStates
in interfaceFeatureOrBuilder
-
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];
- Specified by:
getMembershipStatesMap
in interfaceFeatureOrBuilder
-
getMembershipStatesOrDefault
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];
- Specified by:
getMembershipStatesOrDefault
in interfaceFeatureOrBuilder
-
getMembershipStatesOrThrow
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];
- Specified by:
getMembershipStatesOrThrow
in interfaceFeatureOrBuilder
-
clearMembershipStates
public Feature.Builder clearMembershipStates()
-
removeMembershipStates
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];
-
getMutableMembershipStates
@Deprecated public Map<String,MembershipFeatureState> getMutableMembershipStates()
Deprecated.Use alternate mutation accessors instead.
-
putMembershipStates
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];
-
putAllMembershipStates
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];
-
hasCreateTime
public boolean hasCreateTime()
Output only. When the Feature resource was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceFeatureOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. When the Feature resource was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceFeatureOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public Feature.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. When the Feature resource was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Feature.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. When the Feature resource was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Feature.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. When the Feature resource was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. When the Feature resource was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. When the Feature resource was created.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceFeatureOrBuilder
-
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];
- Specified by:
hasUpdateTime
in interfaceFeatureOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. When the Feature resource was last updated.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTime
in interfaceFeatureOrBuilder
- Returns:
- The updateTime.
-
setUpdateTime
public Feature.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. When the Feature resource was last updated.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public Feature.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. When the Feature resource was last updated.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeUpdateTime
public Feature.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. When the Feature resource was last updated.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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];
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. When the Feature resource was last updated.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. When the Feature resource was last updated.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTimeOrBuilder
in interfaceFeatureOrBuilder
-
hasDeleteTime
public boolean hasDeleteTime()
Output only. When the Feature resource was deleted.
.google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasDeleteTime
in interfaceFeatureOrBuilder
- Returns:
- Whether the deleteTime field is set.
-
getDeleteTime
public com.google.protobuf.Timestamp getDeleteTime()
Output only. When the Feature resource was deleted.
.google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDeleteTime
in interfaceFeatureOrBuilder
- Returns:
- The deleteTime.
-
setDeleteTime
public Feature.Builder setDeleteTime(com.google.protobuf.Timestamp value)
Output only. When the Feature resource was deleted.
.google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setDeleteTime
public Feature.Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. When the Feature resource was deleted.
.google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeDeleteTime
public Feature.Builder mergeDeleteTime(com.google.protobuf.Timestamp value)
Output only. When the Feature resource was deleted.
.google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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];
-
getDeleteTimeBuilder
public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()
Output only. When the Feature resource was deleted.
.google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getDeleteTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
Output only. When the Feature resource was deleted.
.google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getDeleteTimeOrBuilder
in interfaceFeatureOrBuilder
-
setUnknownFields
public final Feature.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
mergeUnknownFields
public final Feature.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Feature.Builder>
-
-