Interface HubOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Hub,Hub.Builder
public interface HubOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)User-defined labels.com.google.protobuf.TimestampgetCreateTime()Time when the Hub was created.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Time when the Hub was created.StringgetDescription()Short description of the hub resource.com.google.protobuf.ByteStringgetDescriptionBytes()Short description of the hub resource.Map<String,String>getLabels()Deprecated.intgetLabelsCount()User-defined labels.Map<String,String>getLabelsMap()User-defined labels.StringgetLabelsOrDefault(String key, String defaultValue)User-defined labels.StringgetLabelsOrThrow(String key)User-defined labels.StringgetName()Immutable.com.google.protobuf.ByteStringgetNameBytes()Immutable.StringgetSpokes(int index)Output only.com.google.protobuf.ByteStringgetSpokesBytes(int index)Output only.intgetSpokesCount()Output only.List<String>getSpokesList()Output only.StategetState()Output only.intgetStateValue()Output only.StringgetUniqueId()Output only.com.google.protobuf.ByteStringgetUniqueIdBytes()Output only.com.google.protobuf.TimestampgetUpdateTime()Time when the Hub was updated.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Time when the Hub was updated.booleanhasCreateTime()Time when the Hub was created.booleanhasUpdateTime()Time when the Hub was updated.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
Immutable. The name of a Hub resource.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Immutable. The name of a Hub resource.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The bytes for name.
-
hasCreateTime
boolean hasCreateTime()
Time when the Hub was created.
.google.protobuf.Timestamp create_time = 2;- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()
Time when the Hub was created.
.google.protobuf.Timestamp create_time = 2;- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Time when the Hub was created.
.google.protobuf.Timestamp create_time = 2;
-
hasUpdateTime
boolean hasUpdateTime()
Time when the Hub was updated.
.google.protobuf.Timestamp update_time = 3;- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.Timestamp getUpdateTime()
Time when the Hub was updated.
.google.protobuf.Timestamp update_time = 3;- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Time when the Hub was updated.
.google.protobuf.Timestamp update_time = 3;
-
getLabelsCount
int getLabelsCount()
User-defined labels.
map<string, string> labels = 4;
-
containsLabels
boolean containsLabels(String key)
User-defined labels.
map<string, string> labels = 4;
-
getLabels
@Deprecated Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.
-
getLabelsMap
Map<String,String> getLabelsMap()
User-defined labels.
map<string, string> labels = 4;
-
getLabelsOrDefault
String getLabelsOrDefault(String key, String defaultValue)
User-defined labels.
map<string, string> labels = 4;
-
getLabelsOrThrow
String getLabelsOrThrow(String key)
User-defined labels.
map<string, string> labels = 4;
-
getDescription
String getDescription()
Short description of the hub resource.
string description = 5;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
Short description of the hub resource.
string description = 5;- Returns:
- The bytes for description.
-
getSpokesList
List<String> getSpokesList()
Output only. A list of the URIs of all attached spokes
repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- A list containing the spokes.
-
getSpokesCount
int getSpokesCount()
Output only. A list of the URIs of all attached spokes
repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- The count of spokes.
-
getSpokes
String getSpokes(int index)
Output only. A list of the URIs of all attached spokes
repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
index- The index of the element to return.- Returns:
- The spokes at the given index.
-
getSpokesBytes
com.google.protobuf.ByteString getSpokesBytes(int index)
Output only. A list of the URIs of all attached spokes
repeated string spokes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the spokes at the given index.
-
getUniqueId
String getUniqueId()
Output only. Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.
string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The uniqueId.
-
getUniqueIdBytes
com.google.protobuf.ByteString getUniqueIdBytes()
Output only. Google-generated UUID for this resource. This is unique across all Hub resources. If a Hub resource is deleted and another with the same name is created, it gets a different unique_id.
string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The bytes for uniqueId.
-
getStateValue
int getStateValue()
Output only. The current lifecycle state of this Hub.
.google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The enum numeric value on the wire for state.
-
getState
State getState()
Output only. The current lifecycle state of this Hub.
.google.cloud.networkconnectivity.v1alpha1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The state.
-
-