public final class Feature extends GeneratedMessageV3 implements FeatureOrBuilder
   
   Feature represents the settings and status of any Hub Feature.
 Protobuf type google.cloud.gkehub.v1.Feature
Static Fields
  
  CREATE_TIME_FIELD_NUMBER
  
    public static final int CREATE_TIME_FIELD_NUMBER
   
  Field Value
  
  DELETE_TIME_FIELD_NUMBER
  
    public static final int DELETE_TIME_FIELD_NUMBER
   
  Field Value
  
  LABELS_FIELD_NUMBER
  
    public static final int LABELS_FIELD_NUMBER
   
  Field Value
  
  MEMBERSHIP_SPECS_FIELD_NUMBER
  
    public static final int MEMBERSHIP_SPECS_FIELD_NUMBER
   
  Field Value
  
  MEMBERSHIP_STATES_FIELD_NUMBER
  
    public static final int MEMBERSHIP_STATES_FIELD_NUMBER
   
  Field Value
  
  NAME_FIELD_NUMBER
  
    public static final int NAME_FIELD_NUMBER
   
  Field Value
  
  RESOURCE_STATE_FIELD_NUMBER
  
    public static final int RESOURCE_STATE_FIELD_NUMBER
   
  Field Value
  
  SPEC_FIELD_NUMBER
  
    public static final int SPEC_FIELD_NUMBER
   
  Field Value
  
  STATE_FIELD_NUMBER
  
    public static final int STATE_FIELD_NUMBER
   
  Field Value
  
  UPDATE_TIME_FIELD_NUMBER
  
    public static final int UPDATE_TIME_FIELD_NUMBER
   
  Field Value
  
  Static Methods
  
  
  getDefaultInstance()
  
    public static Feature getDefaultInstance()
   
  Returns
  
  
  getDescriptor()
  
    public static final Descriptors.Descriptor getDescriptor()
   
  Returns
  
  
  newBuilder()
  
    public static Feature.Builder newBuilder()
   
  Returns
  
  
  newBuilder(Feature prototype)
  
    public static Feature.Builder newBuilder(Feature prototype)
   
  Parameter
  
  Returns
  
  
  
  
    public static Feature parseDelimitedFrom(InputStream input)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  
  
    public static Feature parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  parseFrom(byte[] data)
  
    public static Feature parseFrom(byte[] data)
   
  Parameter
  
    
      
        | Name | Description | 
      
        | data | byte[]
 | 
    
  
  Returns
  
  Exceptions
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
  
    public static Feature parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  parseFrom(ByteString data)
  
    public static Feature parseFrom(ByteString data)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
  
    public static Feature parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  
  
    public static Feature parseFrom(CodedInputStream input)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  
  
    public static Feature parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  
  
    public static Feature parseFrom(InputStream input)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  
  
    public static Feature parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  parseFrom(ByteBuffer data)
  
    public static Feature parseFrom(ByteBuffer data)
   
  Parameter
  
  Returns
  
  Exceptions
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
  
    public static Feature parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
   
  Parameters
  
  Returns
  
  Exceptions
  
  
  parser()
  
    public static Parser<Feature> parser()
   
  Returns
  
  Methods
  
  
  containsLabels(String key)
  
    public boolean containsLabels(String key)
   
   GCP labels for this Feature.
 map<string, string> labels = 2;
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.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
 
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.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
equals(Object obj)
  
    public boolean equals(Object obj)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  getCreateTime()
  
    public Timestamp getCreateTime()
   
   Output only. When the Feature resource was created.
 .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getCreateTimeOrBuilder()
  
    public TimestampOrBuilder getCreateTimeOrBuilder()
   
   Output only. When the Feature resource was created.
 .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getDefaultInstanceForType()
  
    public Feature getDefaultInstanceForType()
   
  Returns
  
  
  getDeleteTime()
  
    public Timestamp getDeleteTime()
   
   Output only. When the Feature resource was deleted.
 .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getDeleteTimeOrBuilder()
  
    public TimestampOrBuilder getDeleteTimeOrBuilder()
   
   Output only. When the Feature resource was deleted.
 .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getLabels()
  
    public Map<String,String> getLabels()
   
  
  Returns
  
  
  getLabelsCount()
  
    public int getLabelsCount()
   
   GCP labels for this Feature.
 map<string, string> labels = 2;
getLabelsMap()
  
    public Map<String,String> getLabelsMap()
   
   GCP labels for this Feature.
 map<string, string> labels = 2;
getLabelsOrDefault(String key, String defaultValue)
  
    public String getLabelsOrDefault(String key, String defaultValue)
   
   GCP labels for this Feature.
 map<string, string> labels = 2;
getLabelsOrThrow(String key)
  
    public String getLabelsOrThrow(String key)
   
   GCP labels for this Feature.
 map<string, string> labels = 2;
getMembershipSpecs()
  
    public Map<String,MembershipFeatureSpec> getMembershipSpecs()
   
  
  Returns
  
  
  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.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
 
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.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
 
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.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
 
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.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
 
getMembershipStates()
  
    public Map<String,MembershipFeatureState> getMembershipStates()
   
  
  Returns
  
  
  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.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
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.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
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.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
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.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
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];
    
      
        | 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
getParserForType()
  
    public Parser<Feature> getParserForType()
   
  Returns
  
  Overrides
  
  
  getResourceState()
  
    public FeatureResourceState getResourceState()
   
   Output only. State of the Feature resource itself.
 
 .google.cloud.gkehub.v1.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.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getSerializedSize()
  
    public int getSerializedSize()
   
  Returns
  
  Overrides
  
  
  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.v1.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.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL];
 
getState()
  
    public CommonFeatureState getState()
   
   Output only. The Hub-wide Feature state.
 
 .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getStateOrBuilder()
  
    public CommonFeatureStateOrBuilder getStateOrBuilder()
   
   Output only. The Hub-wide Feature state.
 
 .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
getUnknownFields()
  
    public final UnknownFieldSet getUnknownFields()
   
  Returns
  
  Overrides
  
  
  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];
 
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];
 
hasCreateTime()
  
    public boolean hasCreateTime()
   
   Output only. When the Feature resource was created.
 .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        | 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        | Type | Description | 
      
        | boolean | Whether the deleteTime field is set. | 
    
  
  
  hasResourceState()
  
    public boolean hasResourceState()
   
   Output only. State of the Feature resource itself.
 
 .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        | Type | Description | 
      
        | boolean | Whether the resourceState field is set. | 
    
  
  
  hasSpec()
  
   Optional. Hub-wide Feature configuration. If this Feature does not support any
 Hub-wide configuration, this field may be unused.
 
 .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        | Type | Description | 
      
        | boolean | Whether the spec field is set. | 
    
  
  
  hasState()
  
    public boolean hasState()
   
   Output only. The Hub-wide Feature state.
 
 .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        | 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
    
      
        | Type | Description | 
      
        | boolean | Whether the updateTime field is set. | 
    
  
  
  hashCode()
  
  Returns
  
  Overrides
  
  
  internalGetFieldAccessorTable()
  
    protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
   
  Returns
  
  Overrides
  
  
  internalGetMapField(int number)
  
    protected MapField internalGetMapField(int number)
   
  Parameter
  
    
      
        | Name | Description | 
      
        | number | int
 | 
    
  
  Returns
  
  Overrides
  
  
  isInitialized()
  
    public final boolean isInitialized()
   
  Returns
  
  Overrides
  
  
  newBuilderForType()
  
    public Feature.Builder newBuilderForType()
   
  Returns
  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent)
  
    protected Feature.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
  
    protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
   
  Parameter
  
  Returns
  
  Overrides
  
  
  toBuilder()
  
    public Feature.Builder toBuilder()
   
  Returns
  
  
  writeTo(CodedOutputStream output)
  
    public void writeTo(CodedOutputStream output)
   
  Parameter
  
  Overrides
  
  Exceptions