Package com.google.cloud.vmwareengine.v1
Class PeeringRoute.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PeeringRoute.Builder>
com.google.cloud.vmwareengine.v1.PeeringRoute.Builder
- All Implemented Interfaces:
PeeringRouteOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PeeringRoute
public static final class PeeringRoute.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PeeringRoute.Builder>
implements PeeringRouteOrBuilder
Exchanged network peering route.Protobuf type
google.cloud.vmwareengine.v1.PeeringRoute-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.booleanOutput only.Output only.com.google.protobuf.ByteStringOutput only.longOutput only.getType()Output only.intOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PeeringRoute other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDestRange(String value) Output only.setDestRangeBytes(com.google.protobuf.ByteString value) Output only.Output only.setDirectionValue(int value) Output only.setImported(boolean value) Output only.setNextHopRegion(String value) Output only.setNextHopRegionBytes(com.google.protobuf.ByteString value) Output only.setPriority(long value) Output only.setType(PeeringRoute.Type value) Output only.setTypeValue(int 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<PeeringRoute.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<PeeringRoute.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<PeeringRoute.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<PeeringRoute.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PeeringRoute.Builder>
-
mergeFrom
public PeeringRoute.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<PeeringRoute.Builder>- Throws:
IOException
-
getDestRange
Output only. Destination range of the peering route in CIDR notation.
string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDestRangein interfacePeeringRouteOrBuilder- Returns:
- The destRange.
-
getDestRangeBytes
public com.google.protobuf.ByteString getDestRangeBytes()Output only. Destination range of the peering route in CIDR notation.
string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDestRangeBytesin interfacePeeringRouteOrBuilder- Returns:
- The bytes for destRange.
-
setDestRange
Output only. Destination range of the peering route in CIDR notation.
string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The destRange to set.- Returns:
- This builder for chaining.
-
clearDestRange
Output only. Destination range of the peering route in CIDR notation.
string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setDestRangeBytes
Output only. Destination range of the peering route in CIDR notation.
string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for destRange to set.- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()Output only. Type of the route in the peer VPC network.
.google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypeValuein interfacePeeringRouteOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Output only. Type of the route in the peer VPC network.
.google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Output only. Type of the route in the peer VPC network.
.google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypein interfacePeeringRouteOrBuilder- Returns:
- The type.
-
setType
Output only. Type of the route in the peer VPC network.
.google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Output only. Type of the route in the peer VPC network.
.google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getNextHopRegion
Output only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.
string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNextHopRegionin interfacePeeringRouteOrBuilder- Returns:
- The nextHopRegion.
-
getNextHopRegionBytes
public com.google.protobuf.ByteString getNextHopRegionBytes()Output only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.
string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNextHopRegionBytesin interfacePeeringRouteOrBuilder- Returns:
- The bytes for nextHopRegion.
-
setNextHopRegion
Output only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.
string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The nextHopRegion to set.- Returns:
- This builder for chaining.
-
clearNextHopRegion
Output only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.
string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNextHopRegionBytes
Output only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.
string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for nextHopRegion to set.- Returns:
- This builder for chaining.
-
getPriority
public long getPriority()Output only. The priority of the peering route.
int64 priority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPriorityin interfacePeeringRouteOrBuilder- Returns:
- The priority.
-
setPriority
Output only. The priority of the peering route.
int64 priority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
Output only. The priority of the peering route.
int64 priority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getImported
public boolean getImported()Output only. True if the peering route has been imported from a peered VPC network; false otherwise. The import happens if the field `NetworkPeering.importCustomRoutes` is true for this network, `NetworkPeering.exportCustomRoutes` is true for the peer VPC network, and the import does not result in a route conflict.
bool imported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getImportedin interfacePeeringRouteOrBuilder- Returns:
- The imported.
-
setImported
Output only. True if the peering route has been imported from a peered VPC network; false otherwise. The import happens if the field `NetworkPeering.importCustomRoutes` is true for this network, `NetworkPeering.exportCustomRoutes` is true for the peer VPC network, and the import does not result in a route conflict.
bool imported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The imported to set.- Returns:
- This builder for chaining.
-
clearImported
Output only. True if the peering route has been imported from a peered VPC network; false otherwise. The import happens if the field `NetworkPeering.importCustomRoutes` is true for this network, `NetworkPeering.exportCustomRoutes` is true for the peer VPC network, and the import does not result in a route conflict.
bool imported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getDirectionValue
public int getDirectionValue()Output only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective: * Routes of direction `INCOMING` are imported from the peer network. * Routes of direction `OUTGOING` are exported from the intranet VPC network of the VMware Engine network.
.google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDirectionValuein interfacePeeringRouteOrBuilder- Returns:
- The enum numeric value on the wire for direction.
-
setDirectionValue
Output only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective: * Routes of direction `INCOMING` are imported from the peer network. * Routes of direction `OUTGOING` are exported from the intranet VPC network of the VMware Engine network.
.google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for direction to set.- Returns:
- This builder for chaining.
-
getDirection
Output only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective: * Routes of direction `INCOMING` are imported from the peer network. * Routes of direction `OUTGOING` are exported from the intranet VPC network of the VMware Engine network.
.google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDirectionin interfacePeeringRouteOrBuilder- Returns:
- The direction.
-
setDirection
Output only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective: * Routes of direction `INCOMING` are imported from the peer network. * Routes of direction `OUTGOING` are exported from the intranet VPC network of the VMware Engine network.
.google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The direction to set.- Returns:
- This builder for chaining.
-
clearDirection
Output only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective: * Routes of direction `INCOMING` are imported from the peer network. * Routes of direction `OUTGOING` are exported from the intranet VPC network of the VMware Engine network.
.google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-