public final class Feature extends GeneratedMessageV3 implements FeatureOrBuilder
Feature represents the settings and status of any Hub Feature.
Protobuf type google.events.cloud.gkehub.v1.Feature
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DELETE_TIME_FIELD_NUMBER
public static final int DELETE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MEMBERSHIP_STATES_FIELD_NUMBER
public static final int MEMBERSHIP_STATES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
RESOURCE_STATE_FIELD_NUMBER
public static final int RESOURCE_STATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SCOPE_STATES_FIELD_NUMBER
public static final int SCOPE_STATES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Feature getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Feature.Builder newBuilder()
newBuilder(Feature prototype)
public static Feature.Builder newBuilder(Feature prototype)
Parameter |
Name |
Description |
prototype |
Feature
|
public static Feature parseDelimitedFrom(InputStream input)
public static Feature parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Feature parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Feature parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Feature parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Feature parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Feature parseFrom(CodedInputStream input)
public static Feature parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Feature parseFrom(InputStream input)
public static Feature parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Feature parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Feature parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Feature> parser()
Methods
containsLabels(String key)
public boolean containsLabels(String key)
GCP labels for this Feature.
map<string, string> labels = 2;
Parameter |
Name |
Description |
key |
String
|
containsMembershipStates(String key)
public boolean containsMembershipStates(String key)
Output only. Membership-specific Feature status. If this Feature does
report any per-Membership status, this field may be unused.
The keys indicate which Membership the state is for, in the form:
projects/{p}/locations/{l}/memberships/{m}
Where {p} is the project number, {l} is a valid location and {m} is a valid
Membership in this project at that location. {p} MUST match the Feature's
project number.
map<string, .google.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;
Parameter |
Name |
Description |
key |
String
|
containsScopeStates(String key)
public boolean containsScopeStates(String key)
Output only. Scope-specific Feature status. If this Feature does
report any per-Scope status, this field may be unused.
The keys indicate which Scope the state is for, in the form:
projects/{p}/locations/global/scopes/{s}
Where {p} is the project, {s} is a valid Scope in this project.
{p} WILL match the Feature's project.
map<string, .google.events.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13;
Parameter |
Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCreateTime()
public Timestamp getCreateTime()
Output only. When the Feature resource was created.
.google.protobuf.Timestamp create_time = 8;
Returns |
Type |
Description |
Timestamp |
The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. When the Feature resource was created.
.google.protobuf.Timestamp create_time = 8;
getDefaultInstanceForType()
public Feature getDefaultInstanceForType()
getDeleteTime()
public Timestamp getDeleteTime()
Output only. When the Feature resource was deleted.
.google.protobuf.Timestamp delete_time = 10;
Returns |
Type |
Description |
Timestamp |
The deleteTime.
|
getDeleteTimeOrBuilder()
public TimestampOrBuilder getDeleteTimeOrBuilder()
Output only. When the Feature resource was deleted.
.google.protobuf.Timestamp delete_time = 10;
getLabels()
public Map<String,String> getLabels()
getLabelsCount()
public int getLabelsCount()
GCP labels for this Feature.
map<string, string> labels = 2;
Returns |
Type |
Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()
GCP labels for this Feature.
map<string, string> labels = 2;
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
GCP labels for this Feature.
map<string, string> labels = 2;
Returns |
Type |
Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
GCP labels for this Feature.
map<string, string> labels = 2;
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
getMembershipStates()
public Map<String,MembershipFeatureState> getMembershipStates()
getMembershipStatesCount()
public int getMembershipStatesCount()
Output only. Membership-specific Feature status. If this Feature does
report any per-Membership status, this field may be unused.
The keys indicate which Membership the state is for, in the form:
projects/{p}/locations/{l}/memberships/{m}
Where {p} is the project number, {l} is a valid location and {m} is a valid
Membership in this project at that location. {p} MUST match the Feature's
project number.
map<string, .google.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;
Returns |
Type |
Description |
int |
|
getMembershipStatesMap()
public Map<String,MembershipFeatureState> getMembershipStatesMap()
Output only. Membership-specific Feature status. If this Feature does
report any per-Membership status, this field may be unused.
The keys indicate which Membership the state is for, in the form:
projects/{p}/locations/{l}/memberships/{m}
Where {p} is the project number, {l} is a valid location and {m} is a valid
Membership in this project at that location. {p} MUST match the Feature's
project number.
map<string, .google.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;
getMembershipStatesOrDefault(String key, MembershipFeatureState defaultValue)
public MembershipFeatureState getMembershipStatesOrDefault(String key, MembershipFeatureState defaultValue)
Output only. Membership-specific Feature status. If this Feature does
report any per-Membership status, this field may be unused.
The keys indicate which Membership the state is for, in the form:
projects/{p}/locations/{l}/memberships/{m}
Where {p} is the project number, {l} is a valid location and {m} is a valid
Membership in this project at that location. {p} MUST match the Feature's
project number.
map<string, .google.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;
getMembershipStatesOrThrow(String key)
public MembershipFeatureState getMembershipStatesOrThrow(String key)
Output only. Membership-specific Feature status. If this Feature does
report any per-Membership status, this field may be unused.
The keys indicate which Membership the state is for, in the form:
projects/{p}/locations/{l}/memberships/{m}
Where {p} is the project number, {l} is a valid location and {m} is a valid
Membership in this project at that location. {p} MUST match the Feature's
project number.
map<string, .google.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;
Parameter |
Name |
Description |
key |
String
|
getName()
Output only. The full, unique name of this Feature resource in the format
projects/*/locations/*/features/*
.
string name = 1;
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Output only. The full, unique name of this Feature resource in the format
projects/*/locations/*/features/*
.
string name = 1;
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<Feature> getParserForType()
Overrides
getResourceState()
public FeatureResourceState getResourceState()
Output only. State of the Feature resource itself.
.google.events.cloud.gkehub.v1.FeatureResourceState resource_state = 3;
getResourceStateOrBuilder()
public FeatureResourceStateOrBuilder getResourceStateOrBuilder()
Output only. State of the Feature resource itself.
.google.events.cloud.gkehub.v1.FeatureResourceState resource_state = 3;
getScopeStates()
public Map<String,ScopeFeatureState> getScopeStates()
getScopeStatesCount()
public int getScopeStatesCount()
Output only. Scope-specific Feature status. If this Feature does
report any per-Scope status, this field may be unused.
The keys indicate which Scope the state is for, in the form:
projects/{p}/locations/global/scopes/{s}
Where {p} is the project, {s} is a valid Scope in this project.
{p} WILL match the Feature's project.
map<string, .google.events.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13;
Returns |
Type |
Description |
int |
|
getScopeStatesMap()
public Map<String,ScopeFeatureState> getScopeStatesMap()
Output only. Scope-specific Feature status. If this Feature does
report any per-Scope status, this field may be unused.
The keys indicate which Scope the state is for, in the form:
projects/{p}/locations/global/scopes/{s}
Where {p} is the project, {s} is a valid Scope in this project.
{p} WILL match the Feature's project.
map<string, .google.events.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13;
getScopeStatesOrDefault(String key, ScopeFeatureState defaultValue)
public ScopeFeatureState getScopeStatesOrDefault(String key, ScopeFeatureState defaultValue)
Output only. Scope-specific Feature status. If this Feature does
report any per-Scope status, this field may be unused.
The keys indicate which Scope the state is for, in the form:
projects/{p}/locations/global/scopes/{s}
Where {p} is the project, {s} is a valid Scope in this project.
{p} WILL match the Feature's project.
map<string, .google.events.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13;
getScopeStatesOrThrow(String key)
public ScopeFeatureState getScopeStatesOrThrow(String key)
Output only. Scope-specific Feature status. If this Feature does
report any per-Scope status, this field may be unused.
The keys indicate which Scope the state is for, in the form:
projects/{p}/locations/global/scopes/{s}
Where {p} is the project, {s} is a valid Scope in this project.
{p} WILL match the Feature's project.
map<string, .google.events.cloud.gkehub.v1.ScopeFeatureState> scope_states = 13;
Parameter |
Name |
Description |
key |
String
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getState()
public CommonFeatureState getState()
Output only. The Hub-wide Feature state.
.google.events.cloud.gkehub.v1.CommonFeatureState state = 6;
getStateOrBuilder()
public CommonFeatureStateOrBuilder getStateOrBuilder()
Output only. The Hub-wide Feature state.
.google.events.cloud.gkehub.v1.CommonFeatureState state = 6;
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
getUpdateTime()
public Timestamp getUpdateTime()
Output only. When the Feature resource was last updated.
.google.protobuf.Timestamp update_time = 9;
Returns |
Type |
Description |
Timestamp |
The updateTime.
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. When the Feature resource was last updated.
.google.protobuf.Timestamp update_time = 9;
hasCreateTime()
public boolean hasCreateTime()
Output only. When the Feature resource was created.
.google.protobuf.Timestamp create_time = 8;
Returns |
Type |
Description |
boolean |
Whether the createTime field is set.
|
hasDeleteTime()
public boolean hasDeleteTime()
Output only. When the Feature resource was deleted.
.google.protobuf.Timestamp delete_time = 10;
Returns |
Type |
Description |
boolean |
Whether the deleteTime field is set.
|
hasResourceState()
public boolean hasResourceState()
Output only. State of the Feature resource itself.
.google.events.cloud.gkehub.v1.FeatureResourceState resource_state = 3;
Returns |
Type |
Description |
boolean |
Whether the resourceState field is set.
|
hasState()
public boolean hasState()
Output only. The Hub-wide Feature state.
.google.events.cloud.gkehub.v1.CommonFeatureState state = 6;
Returns |
Type |
Description |
boolean |
Whether the state field is set.
|
hasUpdateTime()
public boolean hasUpdateTime()
Output only. When the Feature resource was last updated.
.google.protobuf.Timestamp update_time = 9;
Returns |
Type |
Description |
boolean |
Whether the updateTime field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Feature.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Feature.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Feature.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides