Package com.google.cloud.compute.v1
Class BgpRoute.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BgpRoute.Builder>
com.google.cloud.compute.v1.BgpRoute.Builder
- All Implemented Interfaces:
BgpRouteOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- BgpRoute
public static final class BgpRoute.Builder
extends com.google.protobuf.GeneratedMessage.Builder<BgpRoute.Builder>
implements BgpRouteOrBuilder
Protobuf type
google.cloud.compute.v1.BgpRoute-
Method Summary
Modifier and TypeMethodDescriptionaddAllAsPaths(Iterable<? extends BgpRouteAsPath> values) Output only.addAllCommunities(Iterable<String> values) Output only.addAsPaths(int index, BgpRouteAsPath value) Output only.addAsPaths(int index, BgpRouteAsPath.Builder builderForValue) Output only.addAsPaths(BgpRouteAsPath value) Output only.addAsPaths(BgpRouteAsPath.Builder builderForValue) Output only.Output only.addAsPathsBuilder(int index) Output only.addCommunities(String value) Output only.addCommunitiesBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Output only.Output only.clearMed()Output only.Output only.getAsPaths(int index) Output only.getAsPathsBuilder(int index) Output only.Output only.intOutput only.Output only.getAsPathsOrBuilder(int index) Output only.List<? extends BgpRouteAsPathOrBuilder>Output only.getCommunities(int index) Output only.com.google.protobuf.ByteStringgetCommunitiesBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.Output only.Output only.intgetMed()Output only.Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanhasMed()Output only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOutput only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeAsPaths(int index) Output only.setAsPaths(int index, BgpRouteAsPath value) Output only.setAsPaths(int index, BgpRouteAsPath.Builder builderForValue) Output only.setCommunities(int index, String value) Output only.Output only.setDestination(BgpRouteNetworkLayerReachabilityInformation.Builder builderForValue) Output only.setMed(int value) Output only.Output only.setOriginBytes(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<BgpRoute.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<BgpRoute.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<BgpRoute.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<BgpRoute.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BgpRoute.Builder>
-
mergeFrom
public BgpRoute.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<BgpRoute.Builder>- Throws:
IOException
-
getAsPathsList
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;- Specified by:
getAsPathsListin interfaceBgpRouteOrBuilder
-
getAsPathsCount
public int getAsPathsCount()Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;- Specified by:
getAsPathsCountin interfaceBgpRouteOrBuilder
-
getAsPaths
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;- Specified by:
getAsPathsin interfaceBgpRouteOrBuilder
-
setAsPaths
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929; -
setAsPaths
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929; -
addAsPaths
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929; -
addAsPaths
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929; -
addAsPaths
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929; -
addAsPaths
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929; -
addAllAsPaths
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929; -
clearAsPaths
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929; -
removeAsPaths
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929; -
getAsPathsBuilder
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929; -
getAsPathsOrBuilder
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;- Specified by:
getAsPathsOrBuilderin interfaceBgpRouteOrBuilder
-
getAsPathsOrBuilderList
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;- Specified by:
getAsPathsOrBuilderListin interfaceBgpRouteOrBuilder
-
addAsPathsBuilder
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929; -
addAsPathsBuilder
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929; -
getAsPathsBuilderList
Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929; -
getCommunitiesList
public com.google.protobuf.ProtocolStringList getCommunitiesList()Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;- Specified by:
getCommunitiesListin interfaceBgpRouteOrBuilder- Returns:
- A list containing the communities.
-
getCommunitiesCount
public int getCommunitiesCount()Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;- Specified by:
getCommunitiesCountin interfaceBgpRouteOrBuilder- Returns:
- The count of communities.
-
getCommunities
Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;- Specified by:
getCommunitiesin interfaceBgpRouteOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The communities at the given index.
-
getCommunitiesBytes
public com.google.protobuf.ByteString getCommunitiesBytes(int index) Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;- Specified by:
getCommunitiesBytesin interfaceBgpRouteOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the communities at the given index.
-
setCommunities
Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;- Parameters:
index- The index to set the value at.value- The communities to set.- Returns:
- This builder for chaining.
-
addCommunities
Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;- Parameters:
value- The communities to add.- Returns:
- This builder for chaining.
-
addAllCommunities
Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;- Parameters:
values- The communities to add.- Returns:
- This builder for chaining.
-
clearCommunities
Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;- Returns:
- This builder for chaining.
-
addCommunitiesBytes
Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;- Parameters:
value- The bytes of the communities to add.- Returns:
- This builder for chaining.
-
hasDestination
public boolean hasDestination()Output only. [Output only] Destination IP range for the route, in human-readable CIDR format
optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;- Specified by:
hasDestinationin interfaceBgpRouteOrBuilder- Returns:
- Whether the destination field is set.
-
getDestination
Output only. [Output only] Destination IP range for the route, in human-readable CIDR format
optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;- Specified by:
getDestinationin interfaceBgpRouteOrBuilder- Returns:
- The destination.
-
setDestination
Output only. [Output only] Destination IP range for the route, in human-readable CIDR format
optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710; -
setDestination
public BgpRoute.Builder setDestination(BgpRouteNetworkLayerReachabilityInformation.Builder builderForValue) Output only. [Output only] Destination IP range for the route, in human-readable CIDR format
optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710; -
mergeDestination
Output only. [Output only] Destination IP range for the route, in human-readable CIDR format
optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710; -
clearDestination
Output only. [Output only] Destination IP range for the route, in human-readable CIDR format
optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710; -
getDestinationBuilder
Output only. [Output only] Destination IP range for the route, in human-readable CIDR format
optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710; -
getDestinationOrBuilder
Output only. [Output only] Destination IP range for the route, in human-readable CIDR format
optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;- Specified by:
getDestinationOrBuilderin interfaceBgpRouteOrBuilder
-
hasMed
public boolean hasMed()Output only. [Output only] BGP multi-exit discriminator
optional uint32 med = 107980;- Specified by:
hasMedin interfaceBgpRouteOrBuilder- Returns:
- Whether the med field is set.
-
getMed
public int getMed()Output only. [Output only] BGP multi-exit discriminator
optional uint32 med = 107980;- Specified by:
getMedin interfaceBgpRouteOrBuilder- Returns:
- The med.
-
setMed
Output only. [Output only] BGP multi-exit discriminator
optional uint32 med = 107980;- Parameters:
value- The med to set.- Returns:
- This builder for chaining.
-
clearMed
Output only. [Output only] BGP multi-exit discriminator
optional uint32 med = 107980;- Returns:
- This builder for chaining.
-
hasOrigin
public boolean hasOrigin()Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.
optional string origin = 65122086;- Specified by:
hasOriginin interfaceBgpRouteOrBuilder- Returns:
- Whether the origin field is set.
-
getOrigin
Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.
optional string origin = 65122086;- Specified by:
getOriginin interfaceBgpRouteOrBuilder- Returns:
- The origin.
-
getOriginBytes
public com.google.protobuf.ByteString getOriginBytes()Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.
optional string origin = 65122086;- Specified by:
getOriginBytesin interfaceBgpRouteOrBuilder- Returns:
- The bytes for origin.
-
setOrigin
Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.
optional string origin = 65122086;- Parameters:
value- The origin to set.- Returns:
- This builder for chaining.
-
clearOrigin
Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.
optional string origin = 65122086;- Returns:
- This builder for chaining.
-
setOriginBytes
Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.
optional string origin = 65122086;- Parameters:
value- The bytes for origin to set.- Returns:
- This builder for chaining.
-