Package com.google.cloud.compute.v1
Class ExchangedPeeringRoute.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExchangedPeeringRoute.Builder>
com.google.cloud.compute.v1.ExchangedPeeringRoute.Builder
- All Implemented Interfaces:
ExchangedPeeringRouteOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExchangedPeeringRoute
public static final class ExchangedPeeringRoute.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ExchangedPeeringRoute.Builder>
implements ExchangedPeeringRouteOrBuilder
Protobuf type
google.cloud.compute.v1.ExchangedPeeringRoute-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The destination range of the route.True if the peering route has been imported from a peer.The region of peering route next hop, only applies to dynamic routes.The priority of the peering route.The type of the peering route.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe destination range of the route.com.google.protobuf.ByteStringThe destination range of the route.booleanTrue if the peering route has been imported from a peer.The region of peering route next hop, only applies to dynamic routes.com.google.protobuf.ByteStringThe region of peering route next hop, only applies to dynamic routes.intThe priority of the peering route.getType()The type of the peering route.com.google.protobuf.ByteStringThe type of the peering route.booleanThe destination range of the route.booleanTrue if the peering route has been imported from a peer.booleanThe region of peering route next hop, only applies to dynamic routes.booleanThe priority of the peering route.booleanhasType()The type of the peering route.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ExchangedPeeringRoute other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDestRange(String value) The destination range of the route.setDestRangeBytes(com.google.protobuf.ByteString value) The destination range of the route.setImported(boolean value) True if the peering route has been imported from a peer.setNextHopRegion(String value) The region of peering route next hop, only applies to dynamic routes.setNextHopRegionBytes(com.google.protobuf.ByteString value) The region of peering route next hop, only applies to dynamic routes.setPriority(int value) The priority of the peering route.The type of the peering route.setTypeBytes(com.google.protobuf.ByteString value) The type of the peering route.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<ExchangedPeeringRoute.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<ExchangedPeeringRoute.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<ExchangedPeeringRoute.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<ExchangedPeeringRoute.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ExchangedPeeringRoute.Builder>
-
mergeFrom
public ExchangedPeeringRoute.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<ExchangedPeeringRoute.Builder>- Throws:
IOException
-
hasDestRange
public boolean hasDestRange()The destination range of the route.
optional string dest_range = 381327712;- Specified by:
hasDestRangein interfaceExchangedPeeringRouteOrBuilder- Returns:
- Whether the destRange field is set.
-
getDestRange
The destination range of the route.
optional string dest_range = 381327712;- Specified by:
getDestRangein interfaceExchangedPeeringRouteOrBuilder- Returns:
- The destRange.
-
getDestRangeBytes
public com.google.protobuf.ByteString getDestRangeBytes()The destination range of the route.
optional string dest_range = 381327712;- Specified by:
getDestRangeBytesin interfaceExchangedPeeringRouteOrBuilder- Returns:
- The bytes for destRange.
-
setDestRange
The destination range of the route.
optional string dest_range = 381327712;- Parameters:
value- The destRange to set.- Returns:
- This builder for chaining.
-
clearDestRange
The destination range of the route.
optional string dest_range = 381327712;- Returns:
- This builder for chaining.
-
setDestRangeBytes
The destination range of the route.
optional string dest_range = 381327712;- Parameters:
value- The bytes for destRange to set.- Returns:
- This builder for chaining.
-
hasImported
public boolean hasImported()True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.
optional bool imported = 114502404;- Specified by:
hasImportedin interfaceExchangedPeeringRouteOrBuilder- Returns:
- Whether the imported field is set.
-
getImported
public boolean getImported()True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.
optional bool imported = 114502404;- Specified by:
getImportedin interfaceExchangedPeeringRouteOrBuilder- Returns:
- The imported.
-
setImported
True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.
optional bool imported = 114502404;- Parameters:
value- The imported to set.- Returns:
- This builder for chaining.
-
clearImported
True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.
optional bool imported = 114502404;- Returns:
- This builder for chaining.
-
hasNextHopRegion
public boolean hasNextHopRegion()The region of peering route next hop, only applies to dynamic routes.
optional string next_hop_region = 122577014;- Specified by:
hasNextHopRegionin interfaceExchangedPeeringRouteOrBuilder- Returns:
- Whether the nextHopRegion field is set.
-
getNextHopRegion
The region of peering route next hop, only applies to dynamic routes.
optional string next_hop_region = 122577014;- Specified by:
getNextHopRegionin interfaceExchangedPeeringRouteOrBuilder- Returns:
- The nextHopRegion.
-
getNextHopRegionBytes
public com.google.protobuf.ByteString getNextHopRegionBytes()The region of peering route next hop, only applies to dynamic routes.
optional string next_hop_region = 122577014;- Specified by:
getNextHopRegionBytesin interfaceExchangedPeeringRouteOrBuilder- Returns:
- The bytes for nextHopRegion.
-
setNextHopRegion
The region of peering route next hop, only applies to dynamic routes.
optional string next_hop_region = 122577014;- Parameters:
value- The nextHopRegion to set.- Returns:
- This builder for chaining.
-
clearNextHopRegion
The region of peering route next hop, only applies to dynamic routes.
optional string next_hop_region = 122577014;- Returns:
- This builder for chaining.
-
setNextHopRegionBytes
The region of peering route next hop, only applies to dynamic routes.
optional string next_hop_region = 122577014;- Parameters:
value- The bytes for nextHopRegion to set.- Returns:
- This builder for chaining.
-
hasPriority
public boolean hasPriority()The priority of the peering route.
optional uint32 priority = 445151652;- Specified by:
hasPriorityin interfaceExchangedPeeringRouteOrBuilder- Returns:
- Whether the priority field is set.
-
getPriority
public int getPriority()The priority of the peering route.
optional uint32 priority = 445151652;- Specified by:
getPriorityin interfaceExchangedPeeringRouteOrBuilder- Returns:
- The priority.
-
setPriority
The priority of the peering route.
optional uint32 priority = 445151652;- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
The priority of the peering route.
optional uint32 priority = 445151652;- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()The type of the peering route. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
hasTypein interfaceExchangedPeeringRouteOrBuilder- Returns:
- Whether the type field is set.
-
getType
The type of the peering route. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypein interfaceExchangedPeeringRouteOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()The type of the peering route. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypeBytesin interfaceExchangedPeeringRouteOrBuilder- Returns:
- The bytes for type.
-
setType
The type of the peering route. Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The type of the peering route. Check the Type enum for the list of possible values.
optional string type = 3575610;- Returns:
- This builder for chaining.
-
setTypeBytes
The type of the peering route. Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-