public static final class Gateway.Builder extends GeneratedMessage.Builder<Gateway.Builder> implements GatewayOrBuilderA gateway that can apply specialized traffic processing.
Protobuf type google.cloud.networkconnectivity.v1beta.Gateway
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Gateway.BuilderImplements
GatewayOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllCloudRouters(Iterable<String> values)
public Gateway.Builder addAllCloudRouters(Iterable<String> values)Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The cloudRouters to add. |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
This builder for chaining. |
addAllIpRangeReservations(Iterable<? extends Gateway.IpRangeReservation> values)
public Gateway.Builder addAllIpRangeReservations(Iterable<? extends Gateway.IpRangeReservation> values)Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation> |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
|
addCloudRouters(String value)
public Gateway.Builder addCloudRouters(String value)Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cloudRouters to add. |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
This builder for chaining. |
addCloudRoutersBytes(ByteString value)
public Gateway.Builder addCloudRoutersBytes(ByteString value)Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the cloudRouters to add. |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
This builder for chaining. |
addIpRangeReservations(Gateway.IpRangeReservation value)
public Gateway.Builder addIpRangeReservations(Gateway.IpRangeReservation value)Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Gateway.IpRangeReservation |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
|
addIpRangeReservations(Gateway.IpRangeReservation.Builder builderForValue)
public Gateway.Builder addIpRangeReservations(Gateway.IpRangeReservation.Builder builderForValue)Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Gateway.IpRangeReservation.Builder |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
|
addIpRangeReservations(int index, Gateway.IpRangeReservation value)
public Gateway.Builder addIpRangeReservations(int index, Gateway.IpRangeReservation value)Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Gateway.IpRangeReservation |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
|
addIpRangeReservations(int index, Gateway.IpRangeReservation.Builder builderForValue)
public Gateway.Builder addIpRangeReservations(int index, Gateway.IpRangeReservation.Builder builderForValue)Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Gateway.IpRangeReservation.Builder |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
|
addIpRangeReservationsBuilder()
public Gateway.IpRangeReservation.Builder addIpRangeReservationsBuilder()Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Gateway.IpRangeReservation.Builder |
|
addIpRangeReservationsBuilder(int index)
public Gateway.IpRangeReservation.Builder addIpRangeReservationsBuilder(int index)Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Gateway.IpRangeReservation.Builder |
|
build()
public Gateway build()| Returns | |
|---|---|
| Type | Description |
Gateway |
|
buildPartial()
public Gateway buildPartial()| Returns | |
|---|---|
| Type | Description |
Gateway |
|
clear()
public Gateway.Builder clear()| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
|
clearCapacity()
public Gateway.Builder clearCapacity()Optional. The aggregate processing capacity of this gateway.
.google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
This builder for chaining. |
clearCloudRouters()
public Gateway.Builder clearCloudRouters()Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
This builder for chaining. |
clearIpRangeReservations()
public Gateway.Builder clearIpRangeReservations()Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
|
clearSacAttachment()
public Gateway.Builder clearSacAttachment()Output only. The URI of the connected SACAttachment. Should be in the form: projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
This builder for chaining. |
getCapacity()
public Gateway.GatewayCapacity getCapacity()Optional. The aggregate processing capacity of this gateway.
.google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Gateway.GatewayCapacity |
The capacity. |
getCapacityValue()
public int getCapacityValue()Optional. The aggregate processing capacity of this gateway.
.google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for capacity. |
getCloudRouters(int index)
public String getCloudRouters(int index)Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The cloudRouters at the given index. |
getCloudRoutersBytes(int index)
public ByteString getCloudRoutersBytes(int index)Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the cloudRouters at the given index. |
getCloudRoutersCount()
public int getCloudRoutersCount()Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The count of cloudRouters. |
getCloudRoutersList()
public ProtocolStringList getCloudRoutersList()Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the cloudRouters. |
getDefaultInstanceForType()
public Gateway getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Gateway |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getIpRangeReservations(int index)
public Gateway.IpRangeReservation getIpRangeReservations(int index)Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Gateway.IpRangeReservation |
|
getIpRangeReservationsBuilder(int index)
public Gateway.IpRangeReservation.Builder getIpRangeReservationsBuilder(int index)Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Gateway.IpRangeReservation.Builder |
|
getIpRangeReservationsBuilderList()
public List<Gateway.IpRangeReservation.Builder> getIpRangeReservationsBuilderList()Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getIpRangeReservationsCount()
public int getIpRangeReservationsCount()Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getIpRangeReservationsList()
public List<Gateway.IpRangeReservation> getIpRangeReservationsList()Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<IpRangeReservation> |
|
getIpRangeReservationsOrBuilder(int index)
public Gateway.IpRangeReservationOrBuilder getIpRangeReservationsOrBuilder(int index)Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Gateway.IpRangeReservationOrBuilder |
|
getIpRangeReservationsOrBuilderList()
public List<? extends Gateway.IpRangeReservationOrBuilder> getIpRangeReservationsOrBuilderList()Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservationOrBuilder> |
|
getSacAttachment()
public String getSacAttachment()Output only. The URI of the connected SACAttachment. Should be in the form: projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The sacAttachment. |
getSacAttachmentBytes()
public ByteString getSacAttachmentBytes()Output only. The URI of the connected SACAttachment. Should be in the form: projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sacAttachment. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Gateway other)
public Gateway.Builder mergeFrom(Gateway other)| Parameter | |
|---|---|
| Name | Description |
other |
Gateway |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Gateway.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Gateway.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
|
removeIpRangeReservations(int index)
public Gateway.Builder removeIpRangeReservations(int index)Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
|
setCapacity(Gateway.GatewayCapacity value)
public Gateway.Builder setCapacity(Gateway.GatewayCapacity value)Optional. The aggregate processing capacity of this gateway.
.google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Gateway.GatewayCapacityThe capacity to set. |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
This builder for chaining. |
setCapacityValue(int value)
public Gateway.Builder setCapacityValue(int value)Optional. The aggregate processing capacity of this gateway.
.google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for capacity to set. |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
This builder for chaining. |
setCloudRouters(int index, String value)
public Gateway.Builder setCloudRouters(int index, String value)Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe cloudRouters to set. |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
This builder for chaining. |
setIpRangeReservations(int index, Gateway.IpRangeReservation value)
public Gateway.Builder setIpRangeReservations(int index, Gateway.IpRangeReservation value)Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Gateway.IpRangeReservation |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
|
setIpRangeReservations(int index, Gateway.IpRangeReservation.Builder builderForValue)
public Gateway.Builder setIpRangeReservations(int index, Gateway.IpRangeReservation.Builder builderForValue)Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.
repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Gateway.IpRangeReservation.Builder |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
|
setSacAttachment(String value)
public Gateway.Builder setSacAttachment(String value)Output only. The URI of the connected SACAttachment. Should be in the form: projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sacAttachment to set. |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
This builder for chaining. |
setSacAttachmentBytes(ByteString value)
public Gateway.Builder setSacAttachmentBytes(ByteString value)Output only. The URI of the connected SACAttachment. Should be in the form: projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sacAttachment to set. |
| Returns | |
|---|---|
| Type | Description |
Gateway.Builder |
This builder for chaining. |