Class Gateway.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Gateway.Builder>
com.google.cloud.networkconnectivity.v1beta.Gateway.Builder
- All Implemented Interfaces:
GatewayOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Gateway
public static final class Gateway.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Gateway.Builder>
implements GatewayOrBuilder
A gateway that can apply specialized traffic processing.Protobuf type
google.cloud.networkconnectivity.v1beta.Gateway-
Method Summary
Modifier and TypeMethodDescriptionaddAllCloudRouters(Iterable<String> values) Output only.addAllIpRangeReservations(Iterable<? extends Gateway.IpRangeReservation> values) Optional.addCloudRouters(String value) Output only.addCloudRoutersBytes(com.google.protobuf.ByteString value) Output only.addIpRangeReservations(int index, Gateway.IpRangeReservation value) Optional.addIpRangeReservations(int index, Gateway.IpRangeReservation.Builder builderForValue) Optional.Optional.addIpRangeReservations(Gateway.IpRangeReservation.Builder builderForValue) Optional.Optional.addIpRangeReservationsBuilder(int index) Optional.build()clear()Optional.Output only.Optional.Output only.Optional.intOptional.getCloudRouters(int index) Output only.com.google.protobuf.ByteStringgetCloudRoutersBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetIpRangeReservations(int index) Optional.getIpRangeReservationsBuilder(int index) Optional.Optional.intOptional.Optional.getIpRangeReservationsOrBuilder(int index) Optional.List<? extends Gateway.IpRangeReservationOrBuilder>Optional.Output only.com.google.protobuf.ByteStringOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeIpRangeReservations(int index) Optional.Optional.setCapacityValue(int value) Optional.setCloudRouters(int index, String value) Output only.setIpRangeReservations(int index, Gateway.IpRangeReservation value) Optional.setIpRangeReservations(int index, Gateway.IpRangeReservation.Builder builderForValue) Optional.setSacAttachment(String value) Output only.setSacAttachmentBytes(com.google.protobuf.ByteString value) 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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Gateway.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<Gateway.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<Gateway.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<Gateway.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Gateway.Builder>
-
mergeFrom
public Gateway.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<Gateway.Builder>- Throws:
IOException
-
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];- Specified by:
getIpRangeReservationsListin interfaceGatewayOrBuilder
-
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];- Specified by:
getIpRangeReservationsCountin interfaceGatewayOrBuilder
-
getIpRangeReservations
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];- Specified by:
getIpRangeReservationsin interfaceGatewayOrBuilder
-
setIpRangeReservations
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]; -
setIpRangeReservations
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]; -
addIpRangeReservations
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]; -
addIpRangeReservations
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]; -
addIpRangeReservations
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]; -
addIpRangeReservations
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]; -
addAllIpRangeReservations
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]; -
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]; -
removeIpRangeReservations
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]; -
getIpRangeReservationsBuilder
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]; -
getIpRangeReservationsOrBuilder
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];- Specified by:
getIpRangeReservationsOrBuilderin interfaceGatewayOrBuilder
-
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];- Specified by:
getIpRangeReservationsOrBuilderListin interfaceGatewayOrBuilder
-
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]; -
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]; -
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]; -
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];- Specified by:
getCapacityValuein interfaceGatewayOrBuilder- Returns:
- The enum numeric value on the wire for capacity.
-
setCapacityValue
Optional. The aggregate processing capacity of this gateway.
.google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for capacity to set.- Returns:
- This builder for chaining.
-
getCapacity
Optional. The aggregate processing capacity of this gateway.
.google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCapacityin interfaceGatewayOrBuilder- Returns:
- The capacity.
-
setCapacity
Optional. The aggregate processing capacity of this gateway.
.google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The capacity to set.- Returns:
- This builder for chaining.
-
clearCapacity
Optional. The aggregate processing capacity of this gateway.
.google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getCloudRoutersList
public com.google.protobuf.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];- Specified by:
getCloudRoutersListin interfaceGatewayOrBuilder- Returns:
- A list containing the cloudRouters.
-
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];- Specified by:
getCloudRoutersCountin interfaceGatewayOrBuilder- Returns:
- The count of cloudRouters.
-
getCloudRouters
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];- Specified by:
getCloudRoutersin interfaceGatewayOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The cloudRouters at the given index.
-
getCloudRoutersBytes
public com.google.protobuf.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];- Specified by:
getCloudRoutersBytesin interfaceGatewayOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the cloudRouters at the given index.
-
setCloudRouters
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:
index- The index to set the value at.value- The cloudRouters to set.- Returns:
- This builder for chaining.
-
addCloudRouters
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:
value- The cloudRouters to add.- Returns:
- This builder for chaining.
-
addAllCloudRouters
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:
values- The cloudRouters to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addCloudRoutersBytes
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:
value- The bytes of the cloudRouters to add.- Returns:
- This builder for chaining.
-
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) = { ... }- Specified by:
getSacAttachmentin interfaceGatewayOrBuilder- Returns:
- The sacAttachment.
-
getSacAttachmentBytes
public com.google.protobuf.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) = { ... }- Specified by:
getSacAttachmentBytesin interfaceGatewayOrBuilder- Returns:
- The bytes for sacAttachment.
-
setSacAttachment
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) = { ... }- Parameters:
value- The sacAttachment to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setSacAttachmentBytes
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) = { ... }- Parameters:
value- The bytes for sacAttachment to set.- Returns:
- This builder for chaining.
-