Class GrpcRoute.StatefulSessionAffinityPolicy.Builder

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

public static final class GrpcRoute.StatefulSessionAffinityPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.StatefulSessionAffinityPolicy.Builder> implements GrpcRoute.StatefulSessionAffinityPolicyOrBuilder
 The specification for cookie-based stateful session affinity where the
 date plane supplies a “session cookie”  with the name "GSSA" which encodes
 a specific destination host and each request containing that cookie will
 be directed to that host as long as the destination host remains up and
 healthy.

 The gRPC proxyless mesh library or sidecar proxy will manage the session
 cookie but the client application code is responsible for copying the
 cookie from each RPC in the session to the next.
 
Protobuf type google.cloud.networkservices.v1.GrpcRoute.StatefulSessionAffinityPolicy
  • 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<GrpcRoute.StatefulSessionAffinityPolicy.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<GrpcRoute.StatefulSessionAffinityPolicy.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<GrpcRoute.StatefulSessionAffinityPolicy.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GrpcRoute.StatefulSessionAffinityPolicy.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<GrpcRoute.StatefulSessionAffinityPolicy.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<GrpcRoute.StatefulSessionAffinityPolicy.Builder>
    • mergeFrom

      public GrpcRoute.StatefulSessionAffinityPolicy.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<GrpcRoute.StatefulSessionAffinityPolicy.Builder>
      Throws:
      IOException
    • hasCookieTtl

      public boolean hasCookieTtl()
       Required. The cookie TTL value for the Set-Cookie header generated by the
       data plane. The lifetime of the cookie may be set to a value from 0 to
       86400 seconds (24 hours) inclusive.
      
       Set this to 0s to use a session cookie and disable cookie expiration.
       
      .google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCookieTtl in interface GrpcRoute.StatefulSessionAffinityPolicyOrBuilder
      Returns:
      Whether the cookieTtl field is set.
    • getCookieTtl

      public com.google.protobuf.Duration getCookieTtl()
       Required. The cookie TTL value for the Set-Cookie header generated by the
       data plane. The lifetime of the cookie may be set to a value from 0 to
       86400 seconds (24 hours) inclusive.
      
       Set this to 0s to use a session cookie and disable cookie expiration.
       
      .google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCookieTtl in interface GrpcRoute.StatefulSessionAffinityPolicyOrBuilder
      Returns:
      The cookieTtl.
    • setCookieTtl

      public GrpcRoute.StatefulSessionAffinityPolicy.Builder setCookieTtl(com.google.protobuf.Duration value)
       Required. The cookie TTL value for the Set-Cookie header generated by the
       data plane. The lifetime of the cookie may be set to a value from 0 to
       86400 seconds (24 hours) inclusive.
      
       Set this to 0s to use a session cookie and disable cookie expiration.
       
      .google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
    • setCookieTtl

      public GrpcRoute.StatefulSessionAffinityPolicy.Builder setCookieTtl(com.google.protobuf.Duration.Builder builderForValue)
       Required. The cookie TTL value for the Set-Cookie header generated by the
       data plane. The lifetime of the cookie may be set to a value from 0 to
       86400 seconds (24 hours) inclusive.
      
       Set this to 0s to use a session cookie and disable cookie expiration.
       
      .google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeCookieTtl

      public GrpcRoute.StatefulSessionAffinityPolicy.Builder mergeCookieTtl(com.google.protobuf.Duration value)
       Required. The cookie TTL value for the Set-Cookie header generated by the
       data plane. The lifetime of the cookie may be set to a value from 0 to
       86400 seconds (24 hours) inclusive.
      
       Set this to 0s to use a session cookie and disable cookie expiration.
       
      .google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearCookieTtl

       Required. The cookie TTL value for the Set-Cookie header generated by the
       data plane. The lifetime of the cookie may be set to a value from 0 to
       86400 seconds (24 hours) inclusive.
      
       Set this to 0s to use a session cookie and disable cookie expiration.
       
      .google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
    • getCookieTtlBuilder

      public com.google.protobuf.Duration.Builder getCookieTtlBuilder()
       Required. The cookie TTL value for the Set-Cookie header generated by the
       data plane. The lifetime of the cookie may be set to a value from 0 to
       86400 seconds (24 hours) inclusive.
      
       Set this to 0s to use a session cookie and disable cookie expiration.
       
      .google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
    • getCookieTtlOrBuilder

      public com.google.protobuf.DurationOrBuilder getCookieTtlOrBuilder()
       Required. The cookie TTL value for the Set-Cookie header generated by the
       data plane. The lifetime of the cookie may be set to a value from 0 to
       86400 seconds (24 hours) inclusive.
      
       Set this to 0s to use a session cookie and disable cookie expiration.
       
      .google.protobuf.Duration cookie_ttl = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCookieTtlOrBuilder in interface GrpcRoute.StatefulSessionAffinityPolicyOrBuilder