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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PeeringRoute
build()
PeeringRoute
buildPartial()
PeeringRoute.Builder
clear()
PeeringRoute.Builder
clearDestRange()
Output only.PeeringRoute.Builder
clearDirection()
Output only.PeeringRoute.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PeeringRoute.Builder
clearImported()
Output only.PeeringRoute.Builder
clearNextHopRegion()
Output only.PeeringRoute.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PeeringRoute.Builder
clearPriority()
Output only.PeeringRoute.Builder
clearType()
Output only.PeeringRoute.Builder
clone()
PeeringRoute
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDestRange()
Output only.com.google.protobuf.ByteString
getDestRangeBytes()
Output only.PeeringRoute.Direction
getDirection()
Output only.int
getDirectionValue()
Output only.boolean
getImported()
Output only.String
getNextHopRegion()
Output only.com.google.protobuf.ByteString
getNextHopRegionBytes()
Output only.long
getPriority()
Output only.PeeringRoute.Type
getType()
Output only.int
getTypeValue()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
PeeringRoute.Builder
mergeFrom(PeeringRoute other)
PeeringRoute.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PeeringRoute.Builder
mergeFrom(com.google.protobuf.Message other)
PeeringRoute.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PeeringRoute.Builder
setDestRange(String value)
Output only.PeeringRoute.Builder
setDestRangeBytes(com.google.protobuf.ByteString value)
Output only.PeeringRoute.Builder
setDirection(PeeringRoute.Direction value)
Output only.PeeringRoute.Builder
setDirectionValue(int value)
Output only.PeeringRoute.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PeeringRoute.Builder
setImported(boolean value)
Output only.PeeringRoute.Builder
setNextHopRegion(String value)
Output only.PeeringRoute.Builder
setNextHopRegionBytes(com.google.protobuf.ByteString value)
Output only.PeeringRoute.Builder
setPriority(long value)
Output only.PeeringRoute.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
PeeringRoute.Builder
setType(PeeringRoute.Type value)
Output only.PeeringRoute.Builder
setTypeValue(int value)
Output only.PeeringRoute.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
clear
public PeeringRoute.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
getDefaultInstanceForType
public PeeringRoute getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PeeringRoute build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PeeringRoute buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PeeringRoute.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
setField
public PeeringRoute.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
clearField
public PeeringRoute.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
clearOneof
public PeeringRoute.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
setRepeatedField
public PeeringRoute.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
addRepeatedField
public PeeringRoute.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
mergeFrom
public PeeringRoute.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PeeringRoute.Builder>
-
mergeFrom
public PeeringRoute.Builder mergeFrom(PeeringRoute other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getDestRange
in 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:
getDestRangeBytes
in 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:
getTypeValue
in 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:
getType
in 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:
getNextHopRegion
in 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:
getNextHopRegionBytes
in 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:
getPriority
in 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:
getImported
in 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:
getDirectionValue
in 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:
getDirection
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
mergeUnknownFields
public final PeeringRoute.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PeeringRoute.Builder>
-
-