Class BackendServiceHttpCookie.Builder

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

public static final class BackendServiceHttpCookie.Builder extends com.google.protobuf.GeneratedMessage.Builder<BackendServiceHttpCookie.Builder> implements BackendServiceHttpCookieOrBuilder
 The HTTP cookie used for stateful session affinity.
 
Protobuf type google.cloud.compute.v1.BackendServiceHttpCookie
  • 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<BackendServiceHttpCookie.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<BackendServiceHttpCookie.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<BackendServiceHttpCookie.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public BackendServiceHttpCookie.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<BackendServiceHttpCookie.Builder>
      Throws:
      IOException
    • hasName

      public boolean hasName()
       Name of the cookie.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface BackendServiceHttpCookieOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Name of the cookie.
       
      optional string name = 3373707;
      Specified by:
      getName in interface BackendServiceHttpCookieOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the cookie.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface BackendServiceHttpCookieOrBuilder
      Returns:
      The bytes for name.
    • setName

      public BackendServiceHttpCookie.Builder setName(String value)
       Name of the cookie.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Name of the cookie.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public BackendServiceHttpCookie.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the cookie.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasPath

      public boolean hasPath()
       Path to set for the cookie.
       
      optional string path = 3433509;
      Specified by:
      hasPath in interface BackendServiceHttpCookieOrBuilder
      Returns:
      Whether the path field is set.
    • getPath

      public String getPath()
       Path to set for the cookie.
       
      optional string path = 3433509;
      Specified by:
      getPath in interface BackendServiceHttpCookieOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Path to set for the cookie.
       
      optional string path = 3433509;
      Specified by:
      getPathBytes in interface BackendServiceHttpCookieOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public BackendServiceHttpCookie.Builder setPath(String value)
       Path to set for the cookie.
       
      optional string path = 3433509;
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

       Path to set for the cookie.
       
      optional string path = 3433509;
      Returns:
      This builder for chaining.
    • setPathBytes

      public BackendServiceHttpCookie.Builder setPathBytes(com.google.protobuf.ByteString value)
       Path to set for the cookie.
       
      optional string path = 3433509;
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • hasTtl

      public boolean hasTtl()
       Lifetime of the cookie.
       
      optional .google.cloud.compute.v1.Duration ttl = 115180;
      Specified by:
      hasTtl in interface BackendServiceHttpCookieOrBuilder
      Returns:
      Whether the ttl field is set.
    • getTtl

      public Duration getTtl()
       Lifetime of the cookie.
       
      optional .google.cloud.compute.v1.Duration ttl = 115180;
      Specified by:
      getTtl in interface BackendServiceHttpCookieOrBuilder
      Returns:
      The ttl.
    • setTtl

       Lifetime of the cookie.
       
      optional .google.cloud.compute.v1.Duration ttl = 115180;
    • setTtl

      public BackendServiceHttpCookie.Builder setTtl(Duration.Builder builderForValue)
       Lifetime of the cookie.
       
      optional .google.cloud.compute.v1.Duration ttl = 115180;
    • mergeTtl

      public BackendServiceHttpCookie.Builder mergeTtl(Duration value)
       Lifetime of the cookie.
       
      optional .google.cloud.compute.v1.Duration ttl = 115180;
    • clearTtl

       Lifetime of the cookie.
       
      optional .google.cloud.compute.v1.Duration ttl = 115180;
    • getTtlBuilder

      public Duration.Builder getTtlBuilder()
       Lifetime of the cookie.
       
      optional .google.cloud.compute.v1.Duration ttl = 115180;
    • getTtlOrBuilder

      public DurationOrBuilder getTtlOrBuilder()
       Lifetime of the cookie.
       
      optional .google.cloud.compute.v1.Duration ttl = 115180;
      Specified by:
      getTtlOrBuilder in interface BackendServiceHttpCookieOrBuilder