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 boolean
containsLabels(String key)
Optional labels in key:value format.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.String
getDescription()
An optional description of the hub.com.google.protobuf.ByteString
getDescriptionBytes()
An optional description of the hub.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Optional labels in key:value format.Map<String,String>
getLabelsMap()
Optional labels in key:value format.String
getLabelsOrDefault(String key, String defaultValue)
Optional labels in key:value format.String
getLabelsOrThrow(String key)
Optional labels in key:value format.String
getName()
Immutable.com.google.protobuf.ByteString
getNameBytes()
Immutable.RoutingVPC
getRoutingVpcs(int index)
The VPC networks associated with this hub's spokes.int
getRoutingVpcsCount()
The VPC networks associated with this hub's spokes.List<RoutingVPC>
getRoutingVpcsList()
The VPC networks associated with this hub's spokes.RoutingVPCOrBuilder
getRoutingVpcsOrBuilder(int index)
The VPC networks associated with this hub's spokes.List<? extends RoutingVPCOrBuilder>
getRoutingVpcsOrBuilderList()
The VPC networks associated with this hub's spokes.State
getState()
Output only.int
getStateValue()
Output only.String
getUniqueId()
Output only.com.google.protobuf.ByteString
getUniqueIdBytes()
Output only.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.boolean
hasCreateTime()
Output only.boolean
hasUpdateTime()
Output only.-
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 the hub. Hub names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Immutable. The name of the hub. Hub names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}`
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
- Returns:
- The bytes for name.
-
hasCreateTime
boolean hasCreateTime()
Output only. The time the hub was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()
Output only. The time the hub was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time the hub was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
hasUpdateTime
boolean hasUpdateTime()
Output only. The time the hub was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.Timestamp getUpdateTime()
Output only. The time the hub was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time the hub was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getLabelsCount
int getLabelsCount()
Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
map<string, string> labels = 4;
-
containsLabels
boolean containsLabels(String key)
Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
map<string, string> labels = 4;
-
getLabels
@Deprecated Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.
-
getLabelsMap
Map<String,String> getLabelsMap()
Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
map<string, string> labels = 4;
-
getLabelsOrDefault
String getLabelsOrDefault(String key, String defaultValue)
Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
map<string, string> labels = 4;
-
getLabelsOrThrow
String getLabelsOrThrow(String key)
Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
map<string, string> labels = 4;
-
getDescription
String getDescription()
An optional description of the hub.
string description = 5;
- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
An optional description of the hub.
string description = 5;
- Returns:
- The bytes for description.
-
getUniqueId
String getUniqueId()
Output only. The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned 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. The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned 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.v1.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.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The state.
-
getRoutingVpcsList
List<RoutingVPC> getRoutingVpcsList()
The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
-
getRoutingVpcs
RoutingVPC getRoutingVpcs(int index)
The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
-
getRoutingVpcsCount
int getRoutingVpcsCount()
The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
-
getRoutingVpcsOrBuilderList
List<? extends RoutingVPCOrBuilder> getRoutingVpcsOrBuilderList()
The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
-
getRoutingVpcsOrBuilder
RoutingVPCOrBuilder getRoutingVpcsOrBuilder(int index)
The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
-
-