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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BgpRoute.Builder>
    • clear

      public BgpRoute.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<BgpRoute.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<BgpRoute.Builder>
    • getDefaultInstanceForType

      public BgpRoute getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public BgpRoute build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BgpRoute buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public BgpRoute.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BgpRoute.Builder>
    • mergeFrom

      public BgpRoute.Builder mergeFrom(BgpRoute other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BgpRoute.Builder>
      Throws:
      IOException
    • getAsPathsList

      public List<BgpRouteAsPath> getAsPathsList()
       Output only. [Output only] AS-PATH for the route
       
      repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
      Specified by:
      getAsPathsList in interface BgpRouteOrBuilder
    • getAsPathsCount

      public int getAsPathsCount()
       Output only. [Output only] AS-PATH for the route
       
      repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
      Specified by:
      getAsPathsCount in interface BgpRouteOrBuilder
    • getAsPaths

      public BgpRouteAsPath getAsPaths(int index)
       Output only. [Output only] AS-PATH for the route
       
      repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
      Specified by:
      getAsPaths in interface BgpRouteOrBuilder
    • setAsPaths

      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;
    • setAsPaths

      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;
    • addAsPaths

      public BgpRoute.Builder addAsPaths(BgpRouteAsPath value)
       Output only. [Output only] AS-PATH for the route
       
      repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
    • addAsPaths

      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;
    • addAsPaths

      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;
    • addAsPaths

      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;
    • addAllAsPaths

      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;
    • clearAsPaths

      public BgpRoute.Builder clearAsPaths()
       Output only. [Output only] AS-PATH for the route
       
      repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
    • removeAsPaths

      public BgpRoute.Builder removeAsPaths(int index)
       Output only. [Output only] AS-PATH for the route
       
      repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
    • getAsPathsBuilder

      public BgpRouteAsPath.Builder getAsPathsBuilder(int index)
       Output only. [Output only] AS-PATH for the route
       
      repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
    • getAsPathsOrBuilder

      public BgpRouteAsPathOrBuilder getAsPathsOrBuilder(int index)
       Output only. [Output only] AS-PATH for the route
       
      repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
      Specified by:
      getAsPathsOrBuilder in interface BgpRouteOrBuilder
    • getAsPathsOrBuilderList

      public List<? extends BgpRouteAsPathOrBuilder> getAsPathsOrBuilderList()
       Output only. [Output only] AS-PATH for the route
       
      repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
      Specified by:
      getAsPathsOrBuilderList in interface BgpRouteOrBuilder
    • addAsPathsBuilder

      public BgpRouteAsPath.Builder addAsPathsBuilder()
       Output only. [Output only] AS-PATH for the route
       
      repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
    • addAsPathsBuilder

      public BgpRouteAsPath.Builder addAsPathsBuilder(int index)
       Output only. [Output only] AS-PATH for the route
       
      repeated .google.cloud.compute.v1.BgpRouteAsPath as_paths = 137568929;
    • getAsPathsBuilderList

      public List<BgpRouteAsPath.Builder> 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:
      getCommunitiesList in interface BgpRouteOrBuilder
      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:
      getCommunitiesCount in interface BgpRouteOrBuilder
      Returns:
      The count of communities.
    • getCommunities

      public String getCommunities(int index)
       Output only. [Output only] BGP communities in human-readable A:B format.
       
      repeated string communities = 188262983;
      Specified by:
      getCommunities in interface BgpRouteOrBuilder
      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:
      getCommunitiesBytes in interface BgpRouteOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the communities at the given index.
    • setCommunities

      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:
      index - The index to set the value at.
      value - The communities to set.
      Returns:
      This builder for chaining.
    • addCommunities

      public BgpRoute.Builder addCommunities(String value)
       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

      public BgpRoute.Builder addAllCommunities(Iterable<String> values)
       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

      public BgpRoute.Builder clearCommunities()
       Output only. [Output only] BGP communities in human-readable A:B format.
       
      repeated string communities = 188262983;
      Returns:
      This builder for chaining.
    • addCommunitiesBytes

      public BgpRoute.Builder addCommunitiesBytes(com.google.protobuf.ByteString value)
       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:
      hasDestination in interface BgpRouteOrBuilder
      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:
      getDestination in interface BgpRouteOrBuilder
      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

       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

      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;
    • 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

      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;
      Specified by:
      getDestinationOrBuilder in interface BgpRouteOrBuilder
    • hasMed

      public boolean hasMed()
       Output only. [Output only] BGP multi-exit discriminator
       
      optional uint32 med = 107980;
      Specified by:
      hasMed in interface BgpRouteOrBuilder
      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:
      getMed in interface BgpRouteOrBuilder
      Returns:
      The med.
    • setMed

      public BgpRoute.Builder setMed(int value)
       Output only. [Output only] BGP multi-exit discriminator
       
      optional uint32 med = 107980;
      Parameters:
      value - The med to set.
      Returns:
      This builder for chaining.
    • clearMed

      public BgpRoute.Builder 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:
      hasOrigin in interface BgpRouteOrBuilder
      Returns:
      Whether the origin field is set.
    • 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;
      Specified by:
      getOrigin in interface BgpRouteOrBuilder
      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:
      getOriginBytes in interface BgpRouteOrBuilder
      Returns:
      The bytes for origin.
    • setOrigin

      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;
      Parameters:
      value - The origin to set.
      Returns:
      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:
      This builder for chaining.
    • setOriginBytes

      public BgpRoute.Builder setOriginBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for origin to set.
      Returns:
      This builder for chaining.