Interface HubOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Hub,Hub.Builder
@Generated
public interface HubOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Optional labels in key-value pair format.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.Deprecated.intOptional labels in key-value pair format.Optional labels in key-value pair format.getLabelsOrDefault(String key, String defaultValue) Optional labels in key-value pair format.getLabelsOrThrow(String key) Optional labels in key-value pair format.getName()Immutable.com.google.protobuf.ByteStringImmutable.Optional.intOptional.Optional.intOptional.getRouteTables(int index) Output only.com.google.protobuf.ByteStringgetRouteTablesBytes(int index) Output only.intOutput only.Output only.getRoutingVpcs(int index) Output only.intOutput only.Output only.getRoutingVpcsOrBuilder(int index) Output only.List<? extends RoutingVPCOrBuilder>Output only.Output only.Output only.getState()Output only.intOutput only.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOptional.booleanOutput only.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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 pair 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
Optional labels in key-value pair 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.UsegetLabelsMap()instead. -
getLabelsMap
Optional labels in key-value pair 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
Optional labels in key-value pair 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
Optional labels in key-value pair 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()Optional. An optional description of the hub.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()Optional. An optional description of the hub.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];- 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.v1beta.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.v1beta.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The state.
-
getRoutingVpcsList
List<RoutingVPC> getRoutingVpcsList()Output only. 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.v1beta.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRoutingVpcs
Output only. 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.v1beta.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRoutingVpcsCount
int getRoutingVpcsCount()Output only. 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.v1beta.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRoutingVpcsOrBuilderList
List<? extends RoutingVPCOrBuilder> getRoutingVpcsOrBuilderList()Output only. 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.v1beta.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRoutingVpcsOrBuilder
Output only. 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.v1beta.RoutingVPC routing_vpcs = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRouteTablesList
Output only. The route tables that belong to this hub. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub.repeated string route_tables = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- A list containing the routeTables.
-
getRouteTablesCount
int getRouteTablesCount()Output only. The route tables that belong to this hub. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub.repeated string route_tables = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The count of routeTables.
-
getRouteTables
Output only. The route tables that belong to this hub. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub.repeated string route_tables = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index of the element to return.- Returns:
- The routeTables at the given index.
-
getRouteTablesBytes
com.google.protobuf.ByteString getRouteTablesBytes(int index) Output only. The route tables that belong to this hub. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub.repeated string route_tables = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the routeTables at the given index.
-
hasSpokeSummary
boolean hasSpokeSummary()Output only. A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
.google.cloud.networkconnectivity.v1beta.SpokeSummary spoke_summary = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the spokeSummary field is set.
-
getSpokeSummary
SpokeSummary getSpokeSummary()Output only. A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
.google.cloud.networkconnectivity.v1beta.SpokeSummary spoke_summary = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The spokeSummary.
-
getSpokeSummaryOrBuilder
SpokeSummaryOrBuilder getSpokeSummaryOrBuilder()Output only. A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
.google.cloud.networkconnectivity.v1beta.SpokeSummary spoke_summary = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPolicyModeValue
int getPolicyModeValue()Optional. The policy mode of this hub. This field can be either PRESET or CUSTOM. If unspecified, the policy_mode defaults to PRESET.
.google.cloud.networkconnectivity.v1beta.PolicyMode policy_mode = 13 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The enum numeric value on the wire for policyMode.
-
getPolicyMode
PolicyMode getPolicyMode()Optional. The policy mode of this hub. This field can be either PRESET or CUSTOM. If unspecified, the policy_mode defaults to PRESET.
.google.cloud.networkconnectivity.v1beta.PolicyMode policy_mode = 13 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The policyMode.
-
getPresetTopologyValue
int getPresetTopologyValue()Optional. The topology implemented in this hub. Currently, this field is only used when policy_mode = PRESET. The available preset topologies are MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET, the preset_topology defaults to MESH. When policy_mode = CUSTOM, the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
.google.cloud.networkconnectivity.v1beta.PresetTopology preset_topology = 14 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The enum numeric value on the wire for presetTopology.
-
getPresetTopology
PresetTopology getPresetTopology()Optional. The topology implemented in this hub. Currently, this field is only used when policy_mode = PRESET. The available preset topologies are MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET, the preset_topology defaults to MESH. When policy_mode = CUSTOM, the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
.google.cloud.networkconnectivity.v1beta.PresetTopology preset_topology = 14 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The presetTopology.
-
hasExportPsc
boolean hasExportPsc()Optional. Whether Private Service Connect connection propagation is enabled for the hub. If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false.
optional bool export_psc = 15 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the exportPsc field is set.
-
getExportPsc
boolean getExportPsc()Optional. Whether Private Service Connect connection propagation is enabled for the hub. If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false.
optional bool export_psc = 15 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The exportPsc.
-