public static final class BgpRoute.Builder extends GeneratedMessage.Builder<BgpRoute.Builder> implements BgpRouteOrBuilder Protobuf type google.cloud.compute.v1.BgpRoute
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BgpRoute.BuilderImplements
BgpRouteOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllAsPaths(Iterable<? extends BgpRouteAsPath> values)
public BgpRoute.Builder addAllAsPaths(Iterable<? extends BgpRouteAsPath> values)Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.compute.v1.BgpRouteAsPath> |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
addAllCommunities(Iterable<String> values)
public BgpRoute.Builder addAllCommunities(Iterable<String> values)Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The communities to add. |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
This builder for chaining. |
addAsPaths(BgpRouteAsPath value)
public BgpRoute.Builder addAsPaths(BgpRouteAsPath value)Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Parameter | |
|---|---|
| Name | Description |
value |
BgpRouteAsPath |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
addAsPaths(BgpRouteAsPath.Builder builderForValue)
public BgpRoute.Builder addAsPaths(BgpRouteAsPath.Builder builderForValue)Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BgpRouteAsPath.Builder |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
addAsPaths(int index, BgpRouteAsPath value)
public BgpRoute.Builder addAsPaths(int index, BgpRouteAsPath value)Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
BgpRouteAsPath |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
addAsPaths(int index, BgpRouteAsPath.Builder builderForValue)
public BgpRoute.Builder addAsPaths(int index, BgpRouteAsPath.Builder builderForValue)Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
BgpRouteAsPath.Builder |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
addAsPathsBuilder()
public BgpRouteAsPath.Builder addAsPathsBuilder()Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Returns | |
|---|---|
| Type | Description |
BgpRouteAsPath.Builder |
|
addAsPathsBuilder(int index)
public BgpRouteAsPath.Builder addAsPathsBuilder(int index)Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BgpRouteAsPath.Builder |
|
addCommunities(String value)
public BgpRoute.Builder addCommunities(String value)Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe communities to add. |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
This builder for chaining. |
addCommunitiesBytes(ByteString value)
public BgpRoute.Builder addCommunitiesBytes(ByteString value)Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the communities to add. |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
This builder for chaining. |
build()
public BgpRoute build()| Returns | |
|---|---|
| Type | Description |
BgpRoute |
|
buildPartial()
public BgpRoute buildPartial()| Returns | |
|---|---|
| Type | Description |
BgpRoute |
|
clear()
public BgpRoute.Builder clear()| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
clearAsPaths()
public BgpRoute.Builder clearAsPaths()Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
clearCommunities()
public BgpRoute.Builder clearCommunities()Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
This builder for chaining. |
clearDestination()
public BgpRoute.Builder clearDestination()Output only. [Output only] Destination IP range for the route, in human-readable CIDR format
optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
clearMed()
public BgpRoute.Builder clearMed()Output only. [Output only] BGP multi-exit discriminator
optional uint32 med = 107980;
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
This builder for chaining. |
clearOrigin()
public BgpRoute.Builder 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 | |
|---|---|
| Type | Description |
BgpRoute.Builder |
This builder for chaining. |
getAsPaths(int index)
public BgpRouteAsPath getAsPaths(int index)Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BgpRouteAsPath |
|
getAsPathsBuilder(int index)
public BgpRouteAsPath.Builder getAsPathsBuilder(int index)Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BgpRouteAsPath.Builder |
|
getAsPathsBuilderList()
public List<BgpRouteAsPath.Builder> getAsPathsBuilderList()Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getAsPathsCount()
public int getAsPathsCount()Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Returns | |
|---|---|
| Type | Description |
int |
|
getAsPathsList()
public List<BgpRouteAsPath> getAsPathsList()Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Returns | |
|---|---|
| Type | Description |
List<BgpRouteAsPath> |
|
getAsPathsOrBuilder(int index)
public BgpRouteAsPathOrBuilder getAsPathsOrBuilder(int index)Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BgpRouteAsPathOrBuilder |
|
getAsPathsOrBuilderList()
public List<? extends BgpRouteAsPathOrBuilder> getAsPathsOrBuilderList()Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.compute.v1.BgpRouteAsPathOrBuilder> |
|
getCommunities(int index)
public String getCommunities(int index)Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The communities at the given index. |
getCommunitiesBytes(int index)
public ByteString getCommunitiesBytes(int index)Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the communities at the given index. |
getCommunitiesCount()
public int getCommunitiesCount()Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;
| Returns | |
|---|---|
| Type | Description |
int |
The count of communities. |
getCommunitiesList()
public ProtocolStringList getCommunitiesList()Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the communities. |
getDefaultInstanceForType()
public BgpRoute getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BgpRoute |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDestination()
public BgpRouteNetworkLayerReachabilityInformation getDestination()Output only. [Output only] Destination IP range for the route, in human-readable CIDR format
optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;
| Returns | |
|---|---|
| Type | Description |
BgpRouteNetworkLayerReachabilityInformation |
The destination. |
getDestinationBuilder()
public BgpRouteNetworkLayerReachabilityInformation.Builder getDestinationBuilder()Output only. [Output only] Destination IP range for the route, in human-readable CIDR format
optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;
| Returns | |
|---|---|
| Type | Description |
BgpRouteNetworkLayerReachabilityInformation.Builder |
|
getDestinationOrBuilder()
public BgpRouteNetworkLayerReachabilityInformationOrBuilder getDestinationOrBuilder()Output only. [Output only] Destination IP range for the route, in human-readable CIDR format
optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;
| Returns | |
|---|---|
| Type | Description |
BgpRouteNetworkLayerReachabilityInformationOrBuilder |
|
getMed()
public int getMed()Output only. [Output only] BGP multi-exit discriminator
optional uint32 med = 107980;
| Returns | |
|---|---|
| Type | Description |
int |
The med. |
getOrigin()
public String 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;
| Returns | |
|---|---|
| Type | Description |
String |
The origin. |
getOriginBytes()
public 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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for origin. |
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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the destination field is set. |
hasMed()
public boolean hasMed()Output only. [Output only] BGP multi-exit discriminator
optional uint32 med = 107980;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the med field is set. |
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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the origin field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeDestination(BgpRouteNetworkLayerReachabilityInformation value)
public BgpRoute.Builder mergeDestination(BgpRouteNetworkLayerReachabilityInformation value)Output only. [Output only] Destination IP range for the route, in human-readable CIDR format
optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;
| Parameter | |
|---|---|
| Name | Description |
value |
BgpRouteNetworkLayerReachabilityInformation |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
mergeFrom(BgpRoute other)
public BgpRoute.Builder mergeFrom(BgpRoute other)| Parameter | |
|---|---|
| Name | Description |
other |
BgpRoute |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BgpRoute.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BgpRoute.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
removeAsPaths(int index)
public BgpRoute.Builder removeAsPaths(int index)Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
setAsPaths(int index, BgpRouteAsPath value)
public BgpRoute.Builder setAsPaths(int index, BgpRouteAsPath value)Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
BgpRouteAsPath |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
setAsPaths(int index, BgpRouteAsPath.Builder builderForValue)
public BgpRoute.Builder setAsPaths(int index, BgpRouteAsPath.Builder builderForValue)Output only. [Output only] AS-PATH for the route
repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
BgpRouteAsPath.Builder |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
setCommunities(int index, String value)
public BgpRoute.Builder setCommunities(int index, String value)Output only. [Output only] BGP communities in human-readable A:B format.
repeated string communities = 188262983;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe communities to set. |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
This builder for chaining. |
setDestination(BgpRouteNetworkLayerReachabilityInformation value)
public BgpRoute.Builder setDestination(BgpRouteNetworkLayerReachabilityInformation value)Output only. [Output only] Destination IP range for the route, in human-readable CIDR format
optional .google.cloud.compute.v1.BgpRouteNetworkLayerReachabilityInformation destination = 180765710;
| Parameter | |
|---|---|
| Name | Description |
value |
BgpRouteNetworkLayerReachabilityInformation |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
setDestination(BgpRouteNetworkLayerReachabilityInformation.Builder builderForValue)
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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BgpRouteNetworkLayerReachabilityInformation.Builder |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
|
setMed(int value)
public BgpRoute.Builder setMed(int value)Output only. [Output only] BGP multi-exit discriminator
optional uint32 med = 107980;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe med to set. |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
This builder for chaining. |
setOrigin(String value)
public BgpRoute.Builder setOrigin(String value)Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.
optional string origin = 65122086;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe origin to set. |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
This builder for chaining. |
setOriginBytes(ByteString value)
public BgpRoute.Builder setOriginBytes(ByteString value)Output only. [Output only] BGP origin (EGP, IGP or INCOMPLETE) Check the Origin enum for the list of possible values.
optional string origin = 65122086;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for origin to set. |
| Returns | |
|---|---|
| Type | Description |
BgpRoute.Builder |
This builder for chaining. |