Class TcpRoute.RouteAction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteAction.Builder>
com.google.cloud.networkservices.v1.TcpRoute.RouteAction.Builder
All Implemented Interfaces:
TcpRoute.RouteActionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TcpRoute.RouteAction

public static final class TcpRoute.RouteAction.Builder extends com.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteAction.Builder> implements TcpRoute.RouteActionOrBuilder
 The specifications for routing traffic and applying associated policies.
 
Protobuf type google.cloud.networkservices.v1.TcpRoute.RouteAction
  • 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<TcpRoute.RouteAction.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<TcpRoute.RouteAction.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<TcpRoute.RouteAction.Builder>
    • getDefaultInstanceForType

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

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

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

      public TcpRoute.RouteAction.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<TcpRoute.RouteAction.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TcpRoute.RouteAction.Builder>
    • mergeFrom

      public TcpRoute.RouteAction.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<TcpRoute.RouteAction.Builder>
      Throws:
      IOException
    • getDestinationsList

      public List<TcpRoute.RouteDestination> getDestinationsList()
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationsList in interface TcpRoute.RouteActionOrBuilder
    • getDestinationsCount

      public int getDestinationsCount()
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationsCount in interface TcpRoute.RouteActionOrBuilder
    • getDestinations

      public TcpRoute.RouteDestination getDestinations(int index)
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinations in interface TcpRoute.RouteActionOrBuilder
    • setDestinations

      public TcpRoute.RouteAction.Builder setDestinations(int index, TcpRoute.RouteDestination value)
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setDestinations

      public TcpRoute.RouteAction.Builder setDestinations(int index, TcpRoute.RouteDestination.Builder builderForValue)
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addDestinations

       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addDestinations

      public TcpRoute.RouteAction.Builder addDestinations(int index, TcpRoute.RouteDestination value)
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addDestinations

      public TcpRoute.RouteAction.Builder addDestinations(TcpRoute.RouteDestination.Builder builderForValue)
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addDestinations

      public TcpRoute.RouteAction.Builder addDestinations(int index, TcpRoute.RouteDestination.Builder builderForValue)
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllDestinations

      public TcpRoute.RouteAction.Builder addAllDestinations(Iterable<? extends TcpRoute.RouteDestination> values)
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearDestinations

      public TcpRoute.RouteAction.Builder clearDestinations()
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeDestinations

      public TcpRoute.RouteAction.Builder removeDestinations(int index)
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getDestinationsBuilder

      public TcpRoute.RouteDestination.Builder getDestinationsBuilder(int index)
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getDestinationsOrBuilder

      public TcpRoute.RouteDestinationOrBuilder getDestinationsOrBuilder(int index)
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationsOrBuilder in interface TcpRoute.RouteActionOrBuilder
    • getDestinationsOrBuilderList

      public List<? extends TcpRoute.RouteDestinationOrBuilder> getDestinationsOrBuilderList()
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDestinationsOrBuilderList in interface TcpRoute.RouteActionOrBuilder
    • addDestinationsBuilder

      public TcpRoute.RouteDestination.Builder addDestinationsBuilder()
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addDestinationsBuilder

      public TcpRoute.RouteDestination.Builder addDestinationsBuilder(int index)
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getDestinationsBuilderList

      public List<TcpRoute.RouteDestination.Builder> getDestinationsBuilderList()
       Optional. The destination services to which traffic should be forwarded.
       At least one destination service is required. Only one of route
       destination or original destination can be set.
       
      repeated .google.cloud.networkservices.v1.TcpRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getOriginalDestination

      public boolean getOriginalDestination()
       Optional. If true, Router will use the destination IP and port of the
       original connection as the destination of the request. Default is false.
       Only one of route destinations or original destination can be set.
       
      bool original_destination = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOriginalDestination in interface TcpRoute.RouteActionOrBuilder
      Returns:
      The originalDestination.
    • setOriginalDestination

      public TcpRoute.RouteAction.Builder setOriginalDestination(boolean value)
       Optional. If true, Router will use the destination IP and port of the
       original connection as the destination of the request. Default is false.
       Only one of route destinations or original destination can be set.
       
      bool original_destination = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The originalDestination to set.
      Returns:
      This builder for chaining.
    • clearOriginalDestination

      public TcpRoute.RouteAction.Builder clearOriginalDestination()
       Optional. If true, Router will use the destination IP and port of the
       original connection as the destination of the request. Default is false.
       Only one of route destinations or original destination can be set.
       
      bool original_destination = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasIdleTimeout

      public boolean hasIdleTimeout()
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 30 seconds. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasIdleTimeout in interface TcpRoute.RouteActionOrBuilder
      Returns:
      Whether the idleTimeout field is set.
    • getIdleTimeout

      public com.google.protobuf.Duration getIdleTimeout()
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 30 seconds. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIdleTimeout in interface TcpRoute.RouteActionOrBuilder
      Returns:
      The idleTimeout.
    • setIdleTimeout

      public TcpRoute.RouteAction.Builder setIdleTimeout(com.google.protobuf.Duration value)
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 30 seconds. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setIdleTimeout

      public TcpRoute.RouteAction.Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue)
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 30 seconds. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeIdleTimeout

      public TcpRoute.RouteAction.Builder mergeIdleTimeout(com.google.protobuf.Duration value)
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 30 seconds. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearIdleTimeout

      public TcpRoute.RouteAction.Builder clearIdleTimeout()
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 30 seconds. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getIdleTimeoutBuilder

      public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder()
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 30 seconds. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getIdleTimeoutOrBuilder

      public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder()
       Optional. Specifies the idle timeout for the selected route. The idle
       timeout is defined as the period in which there are no bytes sent or
       received on either the upstream or downstream connection. If not set, the
       default idle timeout is 30 seconds. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIdleTimeoutOrBuilder in interface TcpRoute.RouteActionOrBuilder