java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkconnectivity.v1beta.Hub
All Implemented Interfaces:
HubOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Hub extends com.google.protobuf.GeneratedMessage implements HubOrBuilder
 A Network Connectivity Center hub is a global management resource to which
 you attach spokes. A single hub can contain spokes from multiple regions.
 However, if any of a hub's spokes use the site-to-site data transfer feature,
 the resources associated with those spokes must all be in the same VPC
 network. Spokes that do not use site-to-site data transfer can be associated
 with any VPC network in your project.
 
Protobuf type google.cloud.networkconnectivity.v1beta.Hub
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • UNIQUE_ID_FIELD_NUMBER

      public static final int UNIQUE_ID_FIELD_NUMBER
      See Also:
    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • ROUTING_VPCS_FIELD_NUMBER

      public static final int ROUTING_VPCS_FIELD_NUMBER
      See Also:
    • ROUTE_TABLES_FIELD_NUMBER

      public static final int ROUTE_TABLES_FIELD_NUMBER
      See Also:
    • SPOKE_SUMMARY_FIELD_NUMBER

      public static final int SPOKE_SUMMARY_FIELD_NUMBER
      See Also:
    • POLICY_MODE_FIELD_NUMBER

      public static final int POLICY_MODE_FIELD_NUMBER
      See Also:
    • PRESET_TOPOLOGY_FIELD_NUMBER

      public static final int PRESET_TOPOLOGY_FIELD_NUMBER
      See Also:
    • EXPORT_PSC_FIELD_NUMBER

      public static final int EXPORT_PSC_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public 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];
      Specified by:
      getName in interface HubOrBuilder
      Returns:
      The name.
    • getNameBytes

      public 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];
      Specified by:
      getNameBytes in interface HubOrBuilder
      Returns:
      The bytes for name.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time the hub was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface HubOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public 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];
      Specified by:
      getCreateTime in interface HubOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public 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];
      Specified by:
      getCreateTimeOrBuilder in interface HubOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The time the hub was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface HubOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public 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];
      Specified by:
      getUpdateTime in interface HubOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public 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];
      Specified by:
      getUpdateTimeOrBuilder in interface HubOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: HubOrBuilder
       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;
      Specified by:
      getLabelsCount in interface HubOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       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;
      Specified by:
      containsLabels in interface HubOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface HubOrBuilder
    • getLabelsMap

      public Map<String,String> 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;
      Specified by:
      getLabelsMap in interface HubOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       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;
      Specified by:
      getLabelsOrDefault in interface HubOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       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;
      Specified by:
      getLabelsOrThrow in interface HubOrBuilder
    • getDescription

      public String getDescription()
       Optional. An optional description of the hub.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface HubOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. An optional description of the hub.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface HubOrBuilder
      Returns:
      The bytes for description.
    • getUniqueId

      public 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];
      Specified by:
      getUniqueId in interface HubOrBuilder
      Returns:
      The uniqueId.
    • getUniqueIdBytes

      public 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];
      Specified by:
      getUniqueIdBytes in interface HubOrBuilder
      Returns:
      The bytes for uniqueId.
    • getStateValue

      public int getStateValue()
       Output only. The current lifecycle state of this hub.
       
      .google.cloud.networkconnectivity.v1beta.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface HubOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public State getState()
       Output only. The current lifecycle state of this hub.
       
      .google.cloud.networkconnectivity.v1beta.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface HubOrBuilder
      Returns:
      The state.
    • getRoutingVpcsList

      public 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];
      Specified by:
      getRoutingVpcsList in interface HubOrBuilder
    • getRoutingVpcsOrBuilderList

      public 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];
      Specified by:
      getRoutingVpcsOrBuilderList in interface HubOrBuilder
    • getRoutingVpcsCount

      public 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];
      Specified by:
      getRoutingVpcsCount in interface HubOrBuilder
    • getRoutingVpcs

      public RoutingVPC getRoutingVpcs(int index)
       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];
      Specified by:
      getRoutingVpcs in interface HubOrBuilder
    • getRoutingVpcsOrBuilder

      public RoutingVPCOrBuilder getRoutingVpcsOrBuilder(int index)
       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];
      Specified by:
      getRoutingVpcsOrBuilder in interface HubOrBuilder
    • getRouteTablesList

      public com.google.protobuf.ProtocolStringList 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];
      Specified by:
      getRouteTablesList in interface HubOrBuilder
      Returns:
      A list containing the routeTables.
    • getRouteTablesCount

      public 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];
      Specified by:
      getRouteTablesCount in interface HubOrBuilder
      Returns:
      The count of routeTables.
    • getRouteTables

      public String getRouteTables(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];
      Specified by:
      getRouteTables in interface HubOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The routeTables at the given index.
    • getRouteTablesBytes

      public 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];
      Specified by:
      getRouteTablesBytes in interface HubOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the routeTables at the given index.
    • hasSpokeSummary

      public 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];
      Specified by:
      hasSpokeSummary in interface HubOrBuilder
      Returns:
      Whether the spokeSummary field is set.
    • getSpokeSummary

      public 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];
      Specified by:
      getSpokeSummary in interface HubOrBuilder
      Returns:
      The spokeSummary.
    • getSpokeSummaryOrBuilder

      public 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];
      Specified by:
      getSpokeSummaryOrBuilder in interface HubOrBuilder
    • getPolicyModeValue

      public 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];
      Specified by:
      getPolicyModeValue in interface HubOrBuilder
      Returns:
      The enum numeric value on the wire for policyMode.
    • getPolicyMode

      public 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];
      Specified by:
      getPolicyMode in interface HubOrBuilder
      Returns:
      The policyMode.
    • getPresetTopologyValue

      public 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];
      Specified by:
      getPresetTopologyValue in interface HubOrBuilder
      Returns:
      The enum numeric value on the wire for presetTopology.
    • getPresetTopology

      public 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];
      Specified by:
      getPresetTopology in interface HubOrBuilder
      Returns:
      The presetTopology.
    • hasExportPsc

      public 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];
      Specified by:
      hasExportPsc in interface HubOrBuilder
      Returns:
      Whether the exportPsc field is set.
    • getExportPsc

      public 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];
      Specified by:
      getExportPsc in interface HubOrBuilder
      Returns:
      The exportPsc.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Hub parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Hub parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Hub parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Hub parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Hub parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Hub parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Hub parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Hub parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Hub parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Hub parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Hub parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Hub parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Hub.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Hub.Builder newBuilder()
    • newBuilder

      public static Hub.Builder newBuilder(Hub prototype)
    • toBuilder

      public Hub.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Hub.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Hub getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Hub> parser()
    • getParserForType

      public com.google.protobuf.Parser<Hub> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Hub getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder