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 Summary
Modifier and TypeMethodDescriptionaddAllRouteTables(Iterable<String> values) Output only.addAllRoutingVpcs(Iterable<? extends RoutingVPC> values) Output only.addRouteTables(String value) Output only.addRouteTablesBytes(com.google.protobuf.ByteString value) Output only.addRoutingVpcs(int index, RoutingVPC value) Output only.addRoutingVpcs(int index, RoutingVPC.Builder builderForValue) Output only.addRoutingVpcs(RoutingVPC value) Output only.addRoutingVpcs(RoutingVPC.Builder builderForValue) Output only.Output only.addRoutingVpcsBuilder(int index) Output only.build()clear()Output only.Optional.Optional.Immutable.Optional.Optional.Output only.Output only.Output only.Output only.Output only.Output only.booleancontainsLabels(String key) Optional labels in key-value pair format.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.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.Deprecated.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.com.google.protobuf.ProtocolStringListOutput only.getRoutingVpcs(int index) Output only.getRoutingVpcsBuilder(int index) Output only.Output only.intOutput only.Output only.getRoutingVpcsOrBuilder(int index) Output only.List<? extends RoutingVPCOrBuilder>Output only.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.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOptional.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSpokeSummary(SpokeSummary value) Output only.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllLabels(Map<String, String> values) Optional labels in key-value pair format.Optional labels in key-value pair format.removeLabels(String key) Optional labels in key-value pair format.removeRoutingVpcs(int index) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.setExportPsc(boolean value) Optional.Immutable.setNameBytes(com.google.protobuf.ByteString value) Immutable.setPolicyMode(PolicyMode value) Optional.setPolicyModeValue(int value) Optional.setPresetTopology(PresetTopology value) Optional.setPresetTopologyValue(int value) Optional.setRouteTables(int index, String value) Output only.setRoutingVpcs(int index, RoutingVPC value) Output only.setRoutingVpcs(int index, RoutingVPC.Builder builderForValue) Output only.setSpokeSummary(SpokeSummary value) Output only.setSpokeSummary(SpokeSummary.Builder builderForValue) Output only.Output only.setStateValue(int value) Output only.setUniqueId(String value) Output only.setUniqueIdBytes(com.google.protobuf.ByteString value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Hub.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Hub.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Hub.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Hub.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Hub.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Hub.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Hub.Builder>- Throws:
IOException
-
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:
getNamein interfaceHubOrBuilder- 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:
getNameBytesin interfaceHubOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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:
hasCreateTimein interfaceHubOrBuilder- 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:
getCreateTimein interfaceHubOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The time the hub was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The time the hub was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The time the hub was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getCreateTimeOrBuilderin interfaceHubOrBuilder
-
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:
hasUpdateTimein interfaceHubOrBuilder- 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:
getUpdateTimein interfaceHubOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The time the hub was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The time the hub was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The time the hub was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getUpdateTimeOrBuilderin interfaceHubOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:HubOrBuilderOptional 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:
getLabelsCountin interfaceHubOrBuilder
-
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;- Specified by:
containsLabelsin interfaceHubOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceHubOrBuilder
-
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:
getLabelsMapin interfaceHubOrBuilder
-
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;- Specified by:
getLabelsOrDefaultin interfaceHubOrBuilder
-
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;- Specified by:
getLabelsOrThrowin interfaceHubOrBuilder
-
clearLabels
-
removeLabels
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.Use alternate mutation accessors instead. -
putLabels
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
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
Optional. An optional description of the hub.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceHubOrBuilder- 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:
getDescriptionBytesin interfaceHubOrBuilder- Returns:
- The bytes for description.
-
setDescription
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
Optional. An optional description of the hub.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDescriptionBytes
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
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:
getUniqueIdin interfaceHubOrBuilder- 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:
getUniqueIdBytesin interfaceHubOrBuilder- Returns:
- The bytes for uniqueId.
-
setUniqueId
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
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
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:
getStateValuein interfaceHubOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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
Output only. The current lifecycle state of this hub.
.google.cloud.networkconnectivity.v1beta.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceHubOrBuilder- Returns:
- The state.
-
setState
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
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
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:
getRoutingVpcsListin interfaceHubOrBuilder
-
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:
getRoutingVpcsCountin interfaceHubOrBuilder
-
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];- Specified by:
getRoutingVpcsin interfaceHubOrBuilder
-
setRoutingVpcs
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
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
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
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
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
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
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
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
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
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];- Specified by:
getRoutingVpcsOrBuilderin interfaceHubOrBuilder
-
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:
getRoutingVpcsOrBuilderListin interfaceHubOrBuilder
-
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
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
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:
getRouteTablesListin interfaceHubOrBuilder- 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:
getRouteTablesCountin interfaceHubOrBuilder- 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];- Specified by:
getRouteTablesin interfaceHubOrBuilder- 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:
getRouteTablesBytesin interfaceHubOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the routeTables at the given index.
-
setRouteTables
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
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
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
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
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:
hasSpokeSummaryin interfaceHubOrBuilder- Returns:
- Whether the spokeSummary field is set.
-
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:
getSpokeSummaryin interfaceHubOrBuilder- Returns:
- The spokeSummary.
-
setSpokeSummary
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
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
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
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
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
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:
getSpokeSummaryOrBuilderin interfaceHubOrBuilder
-
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:
getPolicyModeValuein interfaceHubOrBuilder- Returns:
- The enum numeric value on the wire for policyMode.
-
setPolicyModeValue
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
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:
getPolicyModein interfaceHubOrBuilder- Returns:
- The policyMode.
-
setPolicyMode
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
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:
getPresetTopologyValuein interfaceHubOrBuilder- Returns:
- The enum numeric value on the wire for presetTopology.
-
setPresetTopologyValue
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
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:
getPresetTopologyin interfaceHubOrBuilder- Returns:
- The presetTopology.
-
setPresetTopology
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
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:
hasExportPscin interfaceHubOrBuilder- 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:
getExportPscin interfaceHubOrBuilder- Returns:
- The exportPsc.
-
setExportPsc
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
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.
-