Class Hub.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Hub.Builder>
com.google.cloud.networkconnectivity.v1beta.Hub.Builder
All Implemented Interfaces:
HubOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Hub

public static final class Hub.Builder extends com.google.protobuf.GeneratedMessage.Builder<Hub.Builder> 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
  • 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.Builder<Hub.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Hub.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Hub.Builder>
    • clear

      public Hub.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Hub.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Hub.Builder>
    • getDefaultInstanceForType

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

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

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

      public Hub.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Hub.Builder>
    • mergeFrom

      public Hub.Builder mergeFrom(Hub other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Hub.Builder>
    • mergeFrom

      public Hub.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Hub.Builder>
      Throws:
      IOException
    • 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.
    • setName

      public Hub.Builder setName(String value)
       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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Hub.Builder clearName()
       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:
      This builder for chaining.
    • setNameBytes

      public Hub.Builder setNameBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCreateTime

      public Hub.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the hub was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Hub.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the hub was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Hub.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time the hub was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Hub.Builder clearCreateTime()
       Output only. The time the hub was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time the hub was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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.
    • setUpdateTime

      public Hub.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time the hub was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Hub.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time the hub was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Hub.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The time the hub was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Hub.Builder clearUpdateTime()
       Output only. The time the hub was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The time the hub was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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
    • clearLabels

      public Hub.Builder clearLabels()
    • removeLabels

      public Hub.Builder removeLabels(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;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Hub.Builder putLabels(String key, String value)
       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;
    • putAllLabels

      public Hub.Builder putAllLabels(Map<String,String> values)
       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

      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.
    • setDescription

      public Hub.Builder setDescription(String value)
       Optional. An optional description of the hub.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Hub.Builder clearDescription()
       Optional. An optional description of the hub.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Hub.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. An optional description of the hub.
       
      string description = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • 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.
    • setUniqueId

      public Hub.Builder setUniqueId(String value)
       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];
      Parameters:
      value - The uniqueId to set.
      Returns:
      This builder for chaining.
    • clearUniqueId

      public Hub.Builder clearUniqueId()
       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:
      This builder for chaining.
    • setUniqueIdBytes

      public Hub.Builder setUniqueIdBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for uniqueId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setStateValue

      public Hub.Builder setStateValue(int value)
       Output only. The current lifecycle state of this hub.
       
      .google.cloud.networkconnectivity.v1beta.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • 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.
    • setState

      public Hub.Builder setState(State value)
       Output only. The current lifecycle state of this hub.
       
      .google.cloud.networkconnectivity.v1beta.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Hub.Builder clearState()
       Output only. The current lifecycle state of this hub.
       
      .google.cloud.networkconnectivity.v1beta.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • 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
    • 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
    • setRoutingVpcs

      public Hub.Builder setRoutingVpcs(int index, RoutingVPC value)
       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];
    • setRoutingVpcs

      public Hub.Builder setRoutingVpcs(int index, RoutingVPC.Builder builderForValue)
       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];
    • addRoutingVpcs

      public Hub.Builder addRoutingVpcs(RoutingVPC value)
       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];
    • addRoutingVpcs

      public Hub.Builder addRoutingVpcs(int index, RoutingVPC value)
       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];
    • addRoutingVpcs

      public Hub.Builder addRoutingVpcs(RoutingVPC.Builder builderForValue)
       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];
    • addRoutingVpcs

      public Hub.Builder addRoutingVpcs(int index, RoutingVPC.Builder builderForValue)
       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];
    • addAllRoutingVpcs

      public Hub.Builder addAllRoutingVpcs(Iterable<? extends RoutingVPC> values)
       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];
    • clearRoutingVpcs

      public Hub.Builder clearRoutingVpcs()
       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];
    • removeRoutingVpcs

      public Hub.Builder removeRoutingVpcs(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];
    • getRoutingVpcsBuilder

      public RoutingVPC.Builder getRoutingVpcsBuilder(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];
    • 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
    • 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
    • addRoutingVpcsBuilder

      public RoutingVPC.Builder addRoutingVpcsBuilder()
       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];
    • addRoutingVpcsBuilder

      public RoutingVPC.Builder addRoutingVpcsBuilder(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];
    • getRoutingVpcsBuilderList

      public List<RoutingVPC.Builder> getRoutingVpcsBuilderList()
       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

      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.
    • setRouteTables

      public Hub.Builder setRouteTables(int index, String value)
       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 to set the value at.
      value - The routeTables to set.
      Returns:
      This builder for chaining.
    • addRouteTables

      public Hub.Builder addRouteTables(String value)
       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:
      value - The routeTables to add.
      Returns:
      This builder for chaining.
    • addAllRouteTables

      public Hub.Builder addAllRouteTables(Iterable<String> values)
       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:
      values - The routeTables to add.
      Returns:
      This builder for chaining.
    • clearRouteTables

      public Hub.Builder clearRouteTables()
       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:
      This builder for chaining.
    • addRouteTablesBytes

      public Hub.Builder addRouteTablesBytes(com.google.protobuf.ByteString value)
       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:
      value - The bytes of the routeTables to add.
      Returns:
      This builder for chaining.
    • 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.
    • setSpokeSummary

      public Hub.Builder setSpokeSummary(SpokeSummary value)
       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];
    • setSpokeSummary

      public Hub.Builder setSpokeSummary(SpokeSummary.Builder builderForValue)
       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];
    • mergeSpokeSummary

      public Hub.Builder mergeSpokeSummary(SpokeSummary value)
       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];
    • clearSpokeSummary

      public Hub.Builder clearSpokeSummary()
       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];
    • getSpokeSummaryBuilder

      public SpokeSummary.Builder getSpokeSummaryBuilder()
       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];
    • 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.
    • setPolicyModeValue

      public Hub.Builder setPolicyModeValue(int value)
       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];
      Parameters:
      value - The enum numeric value on the wire for policyMode to set.
      Returns:
      This builder for chaining.
    • 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.
    • setPolicyMode

      public Hub.Builder setPolicyMode(PolicyMode value)
       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];
      Parameters:
      value - The policyMode to set.
      Returns:
      This builder for chaining.
    • clearPolicyMode

      public Hub.Builder clearPolicyMode()
       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:
      This builder for chaining.
    • 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.
    • setPresetTopologyValue

      public Hub.Builder setPresetTopologyValue(int value)
       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];
      Parameters:
      value - The enum numeric value on the wire for presetTopology to set.
      Returns:
      This builder for chaining.
    • 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.
    • setPresetTopology

      public Hub.Builder setPresetTopology(PresetTopology value)
       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];
      Parameters:
      value - The presetTopology to set.
      Returns:
      This builder for chaining.
    • clearPresetTopology

      public Hub.Builder clearPresetTopology()
       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:
      This builder for chaining.
    • 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.
    • setExportPsc

      public Hub.Builder setExportPsc(boolean value)
       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];
      Parameters:
      value - The exportPsc to set.
      Returns:
      This builder for chaining.
    • clearExportPsc

      public Hub.Builder clearExportPsc()
       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:
      This builder for chaining.