- 1.52.0 (latest)
- 1.51.0
- 1.50.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.9
- 1.1.1
- 1.0.0
- 0.5.0
public static final class Hub.Builder extends GeneratedMessageV3.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.v1.Hub
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Hub.BuilderImplements
HubOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllRouteTables(Iterable<String> values)
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];
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The routeTables to add. |
Returns | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
addAllRoutingVpcs(Iterable<? extends RoutingVPC> values)
public Hub.Builder addAllRoutingVpcs(Iterable<? extends RoutingVPC> values)
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.networkconnectivity.v1.RoutingVPC> |
Returns | |
---|---|
Type | Description |
Hub.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Hub.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Hub.Builder |
addRouteTables(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The routeTables to add. |
Returns | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
addRouteTablesBytes(ByteString value)
public Hub.Builder addRouteTablesBytes(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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the routeTables to add. |
Returns | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
addRoutingVpcs(RoutingVPC value)
public Hub.Builder addRoutingVpcs(RoutingVPC value)
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Parameter | |
---|---|
Name | Description |
value | RoutingVPC |
Returns | |
---|---|
Type | Description |
Hub.Builder |
addRoutingVpcs(RoutingVPC.Builder builderForValue)
public Hub.Builder addRoutingVpcs(RoutingVPC.Builder builderForValue)
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Parameter | |
---|---|
Name | Description |
builderForValue | RoutingVPC.Builder |
Returns | |
---|---|
Type | Description |
Hub.Builder |
addRoutingVpcs(int index, RoutingVPC value)
public Hub.Builder addRoutingVpcs(int index, RoutingVPC value)
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Parameters | |
---|---|
Name | Description |
index | int |
value | RoutingVPC |
Returns | |
---|---|
Type | Description |
Hub.Builder |
addRoutingVpcs(int index, RoutingVPC.Builder builderForValue)
public Hub.Builder addRoutingVpcs(int index, RoutingVPC.Builder builderForValue)
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | RoutingVPC.Builder |
Returns | |
---|---|
Type | Description |
Hub.Builder |
addRoutingVpcsBuilder()
public RoutingVPC.Builder addRoutingVpcsBuilder()
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Returns | |
---|---|
Type | Description |
RoutingVPC.Builder |
addRoutingVpcsBuilder(int index)
public RoutingVPC.Builder addRoutingVpcsBuilder(int index)
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
RoutingVPC.Builder |
build()
public Hub build()
Returns | |
---|---|
Type | Description |
Hub |
buildPartial()
public Hub buildPartial()
Returns | |
---|---|
Type | Description |
Hub |
clear()
public Hub.Builder clear()
Returns | |
---|---|
Type | Description |
Hub.Builder |
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];
Returns | |
---|---|
Type | Description |
Hub.Builder |
clearDescription()
public Hub.Builder clearDescription()
An optional description of the hub.
string description = 5;
Returns | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Hub.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Hub.Builder |
clearLabels()
public Hub.Builder clearLabels()
Returns | |
---|---|
Type | Description |
Hub.Builder |
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 | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Hub.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Hub.Builder |
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 | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
clearRoutingVpcs()
public Hub.Builder clearRoutingVpcs()
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Returns | |
---|---|
Type | Description |
Hub.Builder |
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.v1.SpokeSummary spoke_summary = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Hub.Builder |
clearState()
public Hub.Builder clearState()
Output only. The current lifecycle state of this hub.
.google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Hub.Builder | 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 | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
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];
Returns | |
---|---|
Type | Description |
Hub.Builder |
clone()
public Hub.Builder clone()
Returns | |
---|---|
Type | Description |
Hub.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
map<string, string> labels = 4;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
boolean |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time the hub was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time the hub was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time the hub was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Hub getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Hub |
getDescription()
public String getDescription()
An optional description of the hub.
string description = 5;
Returns | |
---|---|
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
An optional description of the hub.
string description = 5;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
map<string, string> labels = 4;
Returns | |
---|---|
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
map<string, string> labels = 4;
Returns | |
---|---|
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
map<string, string> labels = 4;
Parameters | |
---|---|
Name | Description |
key | String |
defaultValue | String |
Returns | |
---|---|
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
map<string, string> labels = 4;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns | |
---|---|
Type | Description |
Map<String,String> |
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];
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Immutable. The name of the hub. Hub names must be unique. They use the
following form:
projects/{project_number}/locations/global/hubs/{hub_id}
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getRouteTables(int index)
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];
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The routeTables at the given index. |
getRouteTablesBytes(int index)
public 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];
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the routeTables at the given index. |
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];
Returns | |
---|---|
Type | Description |
int | The count of routeTables. |
getRouteTablesList()
public 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];
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the routeTables. |
getRoutingVpcs(int index)
public RoutingVPC getRoutingVpcs(int index)
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
RoutingVPC |
getRoutingVpcsBuilder(int index)
public RoutingVPC.Builder getRoutingVpcsBuilder(int index)
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
RoutingVPC.Builder |
getRoutingVpcsBuilderList()
public List<RoutingVPC.Builder> getRoutingVpcsBuilderList()
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Returns | |
---|---|
Type | Description |
List<Builder> |
getRoutingVpcsCount()
public int getRoutingVpcsCount()
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Returns | |
---|---|
Type | Description |
int |
getRoutingVpcsList()
public List<RoutingVPC> getRoutingVpcsList()
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Returns | |
---|---|
Type | Description |
List<RoutingVPC> |
getRoutingVpcsOrBuilder(int index)
public RoutingVPCOrBuilder getRoutingVpcsOrBuilder(int index)
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
RoutingVPCOrBuilder |
getRoutingVpcsOrBuilderList()
public List<? extends RoutingVPCOrBuilder> getRoutingVpcsOrBuilderList()
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.networkconnectivity.v1.RoutingVPCOrBuilder> |
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.v1.SpokeSummary spoke_summary = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
SpokeSummary | The spokeSummary. |
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.v1.SpokeSummary spoke_summary = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
SpokeSummary.Builder |
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.v1.SpokeSummary spoke_summary = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
SpokeSummaryOrBuilder |
getState()
public State getState()
Output only. The current lifecycle state of this hub.
.google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
State | The state. |
getStateValue()
public int getStateValue()
Output only. The current lifecycle state of this hub.
.google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
int | The enum numeric value on the wire for state. |
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];
Returns | |
---|---|
Type | Description |
String | The uniqueId. |
getUniqueIdBytes()
public ByteString getUniqueIdBytes()
Output only. The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
string unique_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for uniqueId. |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The time the hub was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The time the hub was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time the hub was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
hasCreateTime()
public boolean hasCreateTime()
Output only. The time the hub was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | Whether the createTime field is set. |
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.v1.SpokeSummary spoke_summary = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
boolean | Whether the spokeSummary field is set. |
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];
Returns | |
---|---|
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter | |
---|---|
Name | Description |
number | int |
Returns | |
---|---|
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public Hub.Builder mergeCreateTime(Timestamp value)
Output only. The time the hub was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
Hub.Builder |
mergeFrom(Hub other)
public Hub.Builder mergeFrom(Hub other)
Parameter | |
---|---|
Name | Description |
other | Hub |
Returns | |
---|---|
Type | Description |
Hub.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Hub.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Hub.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Hub.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Hub.Builder |
mergeSpokeSummary(SpokeSummary value)
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.v1.SpokeSummary spoke_summary = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | SpokeSummary |
Returns | |
---|---|
Type | Description |
Hub.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Hub.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Hub.Builder |
mergeUpdateTime(Timestamp value)
public Hub.Builder mergeUpdateTime(Timestamp value)
Output only. The time the hub was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
Hub.Builder |
putAllLabels(Map<String,String> values)
public Hub.Builder putAllLabels(Map<String,String> values)
Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
map<string, string> labels = 4;
Parameter | |
---|---|
Name | Description |
values | Map<String,String> |
Returns | |
---|---|
Type | Description |
Hub.Builder |
putLabels(String key, String value)
public Hub.Builder putLabels(String key, String value)
Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
map<string, string> labels = 4;
Parameters | |
---|---|
Name | Description |
key | String |
value | String |
Returns | |
---|---|
Type | Description |
Hub.Builder |
removeLabels(String key)
public Hub.Builder removeLabels(String key)
Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
map<string, string> labels = 4;
Parameter | |
---|---|
Name | Description |
key | String |
Returns | |
---|---|
Type | Description |
Hub.Builder |
removeRoutingVpcs(int index)
public Hub.Builder removeRoutingVpcs(int index)
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Hub.Builder |
setCreateTime(Timestamp value)
public Hub.Builder setCreateTime(Timestamp value)
Output only. The time the hub was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
Hub.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public Hub.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The time the hub was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
Hub.Builder |
setDescription(String value)
public Hub.Builder setDescription(String value)
An optional description of the hub.
string description = 5;
Parameter | |
---|---|
Name | Description |
value | String The description to set. |
Returns | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public Hub.Builder setDescriptionBytes(ByteString value)
An optional description of the hub.
string description = 5;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Hub.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Hub.Builder |
setName(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Hub.Builder setNameBytes(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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Hub.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
Hub.Builder |
setRouteTables(int index, String value)
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The routeTables to set. |
Returns | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
setRoutingVpcs(int index, RoutingVPC value)
public Hub.Builder setRoutingVpcs(int index, RoutingVPC value)
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Parameters | |
---|---|
Name | Description |
index | int |
value | RoutingVPC |
Returns | |
---|---|
Type | Description |
Hub.Builder |
setRoutingVpcs(int index, RoutingVPC.Builder builderForValue)
public Hub.Builder setRoutingVpcs(int index, RoutingVPC.Builder builderForValue)
The VPC networks associated with this hub's spokes.
This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
repeated .google.cloud.networkconnectivity.v1.RoutingVPC routing_vpcs = 10;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | RoutingVPC.Builder |
Returns | |
---|---|
Type | Description |
Hub.Builder |
setSpokeSummary(SpokeSummary value)
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.v1.SpokeSummary spoke_summary = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | SpokeSummary |
Returns | |
---|---|
Type | Description |
Hub.Builder |
setSpokeSummary(SpokeSummary.Builder builderForValue)
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.v1.SpokeSummary spoke_summary = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue | SpokeSummary.Builder |
Returns | |
---|---|
Type | Description |
Hub.Builder |
setState(State value)
public Hub.Builder setState(State value)
Output only. The current lifecycle state of this hub.
.google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | State The state to set. |
Returns | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
setStateValue(int value)
public Hub.Builder setStateValue(int value)
Output only. The current lifecycle state of this hub.
.google.cloud.networkconnectivity.v1.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Returns | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
setUniqueId(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The uniqueId to set. |
Returns | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
setUniqueIdBytes(ByteString value)
public Hub.Builder setUniqueIdBytes(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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for uniqueId to set. |
Returns | |
---|---|
Type | Description |
Hub.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Hub.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Hub.Builder |
setUpdateTime(Timestamp value)
public Hub.Builder setUpdateTime(Timestamp value)
Output only. The time the hub was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
Hub.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public Hub.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The time the hub was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
Hub.Builder |