Class Feature (0.14.1)

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

Implements

FeatureOrBuilder

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DELETE_TIME_FIELD_NUMBER

public static final int DELETE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

MEMBERSHIP_STATES_FIELD_NUMBER

public static final int MEMBERSHIP_STATES_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_STATE_FIELD_NUMBER

public static final int RESOURCE_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

SCOPE_STATES_FIELD_NUMBER

public static final int SCOPE_STATES_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Feature getDefaultInstance()
Returns
TypeDescription
Feature

getDescriptor()

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

newBuilder()

public static Feature.Builder newBuilder()
Returns
TypeDescription
Feature.Builder

newBuilder(Feature prototype)

public static Feature.Builder newBuilder(Feature prototype)
Parameter
NameDescription
prototypeFeature
Returns
TypeDescription
Feature.Builder

parseDelimitedFrom(InputStream input)

public static Feature parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Feature
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Feature parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Feature
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Feature parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Feature
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Feature parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Feature
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Feature parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Feature
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Feature parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Feature
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Feature parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Feature
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Feature parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Feature
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Feature parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Feature
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Feature parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Feature
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Feature parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Feature
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Feature parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Feature
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Feature> parser()
Returns
TypeDescription
Parser<Feature>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

GCP labels for this Feature.

map<string, string> labels = 2;

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.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsScopeStates(String key)

public boolean containsScopeStates(String key)

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

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

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8;

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;

Returns
TypeDescription
Timestamp

The deleteTime.

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. When the Feature resource was deleted.

.google.protobuf.Timestamp delete_time = 10;

Returns
TypeDescription
TimestampOrBuilder

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

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.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;

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.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;

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.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;

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.events.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
MembershipFeatureState

getName()

public String getName()

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

string name = 1;

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;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Feature> getParserForType()
Returns
TypeDescription
Parser<Feature>
Overrides

getResourceState()

public FeatureResourceState getResourceState()

Output only. State of the Feature resource itself.

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

Returns
TypeDescription
FeatureResourceState

The resourceState.

getResourceStateOrBuilder()

public FeatureResourceStateOrBuilder getResourceStateOrBuilder()

Output only. State of the Feature resource itself.

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

Returns
TypeDescription
FeatureResourceStateOrBuilder

getScopeStates()

public Map<String,ScopeFeatureState> getScopeStates()

Use #getScopeStatesMap() instead.

Returns
TypeDescription
Map<String,ScopeFeatureState>

getScopeStatesCount()

public int getScopeStatesCount()

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

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

Returns
TypeDescription
int

getScopeStatesMap()

public Map<String,ScopeFeatureState> getScopeStatesMap()

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

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

Returns
TypeDescription
Map<String,ScopeFeatureState>

getScopeStatesOrDefault(String key, ScopeFeatureState defaultValue)

public ScopeFeatureState getScopeStatesOrDefault(String key, ScopeFeatureState defaultValue)

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

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

Parameters
NameDescription
keyString
defaultValueScopeFeatureState
Returns
TypeDescription
ScopeFeatureState

getScopeStatesOrThrow(String key)

public ScopeFeatureState getScopeStatesOrThrow(String key)

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

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

Parameter
NameDescription
keyString
Returns
TypeDescription
ScopeFeatureState

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getState()

public CommonFeatureState getState()

Output only. The Hub-wide Feature state.

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

Returns
TypeDescription
CommonFeatureState

The state.

getStateOrBuilder()

public CommonFeatureStateOrBuilder getStateOrBuilder()

Output only. The Hub-wide Feature state.

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

Returns
TypeDescription
CommonFeatureStateOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

Output only. When the Feature resource was last updated.

.google.protobuf.Timestamp update_time = 9;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. When the Feature resource was last updated.

.google.protobuf.Timestamp update_time = 9;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. When the Feature resource was created.

.google.protobuf.Timestamp create_time = 8;

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;

Returns
TypeDescription
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
TypeDescription
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
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;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Feature.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Feature.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException