Class TlsRoute.RouteAction.Builder

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

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

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

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

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

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

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

      public List<TlsRoute.RouteDestination> getDestinationsList()
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDestinationsList in interface TlsRoute.RouteActionOrBuilder
    • getDestinationsCount

      public int getDestinationsCount()
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDestinationsCount in interface TlsRoute.RouteActionOrBuilder
    • getDestinations

      public TlsRoute.RouteDestination getDestinations(int index)
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDestinations in interface TlsRoute.RouteActionOrBuilder
    • setDestinations

      public TlsRoute.RouteAction.Builder setDestinations(int index, TlsRoute.RouteDestination value)
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
    • setDestinations

      public TlsRoute.RouteAction.Builder setDestinations(int index, TlsRoute.RouteDestination.Builder builderForValue)
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDestinations

       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDestinations

      public TlsRoute.RouteAction.Builder addDestinations(int index, TlsRoute.RouteDestination value)
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDestinations

      public TlsRoute.RouteAction.Builder addDestinations(TlsRoute.RouteDestination.Builder builderForValue)
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDestinations

      public TlsRoute.RouteAction.Builder addDestinations(int index, TlsRoute.RouteDestination.Builder builderForValue)
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
    • addAllDestinations

      public TlsRoute.RouteAction.Builder addAllDestinations(Iterable<? extends TlsRoute.RouteDestination> values)
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearDestinations

      public TlsRoute.RouteAction.Builder clearDestinations()
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
    • removeDestinations

      public TlsRoute.RouteAction.Builder removeDestinations(int index)
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDestinationsBuilder

      public TlsRoute.RouteDestination.Builder getDestinationsBuilder(int index)
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDestinationsOrBuilder

      public TlsRoute.RouteDestinationOrBuilder getDestinationsOrBuilder(int index)
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDestinationsOrBuilder in interface TlsRoute.RouteActionOrBuilder
    • getDestinationsOrBuilderList

      public List<? extends TlsRoute.RouteDestinationOrBuilder> getDestinationsOrBuilderList()
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDestinationsOrBuilderList in interface TlsRoute.RouteActionOrBuilder
    • addDestinationsBuilder

      public TlsRoute.RouteDestination.Builder addDestinationsBuilder()
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
    • addDestinationsBuilder

      public TlsRoute.RouteDestination.Builder addDestinationsBuilder(int index)
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDestinationsBuilderList

      public List<TlsRoute.RouteDestination.Builder> getDestinationsBuilderList()
       Required. The destination services to which traffic should be forwarded.
       At least one destination service is required.
       
      repeated .google.cloud.networkservices.v1.TlsRoute.RouteDestination destinations = 1 [(.google.api.field_behavior) = REQUIRED];
    • 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 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasIdleTimeout in interface TlsRoute.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 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIdleTimeout in interface TlsRoute.RouteActionOrBuilder
      Returns:
      The idleTimeout.
    • setIdleTimeout

      public TlsRoute.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 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setIdleTimeout

      public TlsRoute.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 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeIdleTimeout

      public TlsRoute.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 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearIdleTimeout

      public TlsRoute.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 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 4 [(.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 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 4 [(.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 1 hour. If set to 0s, the timeout will be
       disabled.
       
      .google.protobuf.Duration idle_timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIdleTimeoutOrBuilder in interface TlsRoute.RouteActionOrBuilder