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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<PeeringRoute.Builder> implements PeeringRouteOrBuilder
Exchanged network peering route.
Protobuf typegoogle.cloud.vmwareengine.v1.PeeringRoute
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PeeringRoute.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PeeringRoutebuild()PeeringRoutebuildPartial()PeeringRoute.Builderclear()PeeringRoute.BuilderclearDestRange()Output only.PeeringRoute.BuilderclearDirection()Output only.PeeringRoute.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PeeringRoute.BuilderclearImported()Output only.PeeringRoute.BuilderclearNextHopRegion()Output only.PeeringRoute.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PeeringRoute.BuilderclearPriority()Output only.PeeringRoute.BuilderclearType()Output only.PeeringRoute.Builderclone()PeeringRoutegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDestRange()Output only.com.google.protobuf.ByteStringgetDestRangeBytes()Output only.PeeringRoute.DirectiongetDirection()Output only.intgetDirectionValue()Output only.booleangetImported()Output only.StringgetNextHopRegion()Output only.com.google.protobuf.ByteStringgetNextHopRegionBytes()Output only.longgetPriority()Output only.PeeringRoute.TypegetType()Output only.intgetTypeValue()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PeeringRoute.BuildermergeFrom(PeeringRoute other)PeeringRoute.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PeeringRoute.BuildermergeFrom(com.google.protobuf.Message other)PeeringRoute.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PeeringRoute.BuildersetDestRange(String value)Output only.PeeringRoute.BuildersetDestRangeBytes(com.google.protobuf.ByteString value)Output only.PeeringRoute.BuildersetDirection(PeeringRoute.Direction value)Output only.PeeringRoute.BuildersetDirectionValue(int value)Output only.PeeringRoute.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PeeringRoute.BuildersetImported(boolean value)Output only.PeeringRoute.BuildersetNextHopRegion(String value)Output only.PeeringRoute.BuildersetNextHopRegionBytes(com.google.protobuf.ByteString value)Output only.PeeringRoute.BuildersetPriority(long value)Output only.PeeringRoute.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PeeringRoute.BuildersetType(PeeringRoute.Type value)Output only.PeeringRoute.BuildersetTypeValue(int value)Output only.PeeringRoute.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
clear
public PeeringRoute.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
getDefaultInstanceForType
public PeeringRoute getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PeeringRoute build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PeeringRoute buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PeeringRoute.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
setField
public PeeringRoute.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
clearField
public PeeringRoute.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
clearOneof
public PeeringRoute.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
setRepeatedField
public PeeringRoute.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
addRepeatedField
public PeeringRoute.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
mergeFrom
public PeeringRoute.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PeeringRoute.Builder>
-
mergeFrom
public PeeringRoute.Builder mergeFrom(PeeringRoute other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String 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
public PeeringRoute.Builder setDestRange(String value)
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
public PeeringRoute.Builder 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
public PeeringRoute.Builder setDestRangeBytes(com.google.protobuf.ByteString value)
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
public PeeringRoute.Builder setTypeValue(int value)
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
public PeeringRoute.Type 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
public PeeringRoute.Builder setType(PeeringRoute.Type value)
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
public PeeringRoute.Builder 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
public String 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
public PeeringRoute.Builder setNextHopRegion(String value)
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
public PeeringRoute.Builder 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
public PeeringRoute.Builder setNextHopRegionBytes(com.google.protobuf.ByteString value)
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
public PeeringRoute.Builder setPriority(long value)
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
public PeeringRoute.Builder 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
public PeeringRoute.Builder setImported(boolean value)
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
public PeeringRoute.Builder 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
public PeeringRoute.Builder setDirectionValue(int value)
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
public PeeringRoute.Direction 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
public PeeringRoute.Builder setDirection(PeeringRoute.Direction value)
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
public PeeringRoute.Builder 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.
-
setUnknownFields
public final PeeringRoute.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
mergeUnknownFields
public final PeeringRoute.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
-