Class HttpHeaderOption.Builder

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

public static final class HttpHeaderOption.Builder extends com.google.protobuf.GeneratedMessage.Builder<HttpHeaderOption.Builder> implements HttpHeaderOptionOrBuilder
 Specification determining how headers are added to requests or responses.
 
Protobuf type google.cloud.compute.v1.HttpHeaderOption
  • 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<HttpHeaderOption.Builder>
    • clear

      public HttpHeaderOption.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<HttpHeaderOption.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<HttpHeaderOption.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public HttpHeaderOption.Builder mergeFrom(HttpHeaderOption other)
    • isInitialized

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

      public HttpHeaderOption.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<HttpHeaderOption.Builder>
      Throws:
      IOException
    • hasHeaderName

      public boolean hasHeaderName()
       The name of the header.
       
      optional string header_name = 110223613;
      Specified by:
      hasHeaderName in interface HttpHeaderOptionOrBuilder
      Returns:
      Whether the headerName field is set.
    • getHeaderName

      public String getHeaderName()
       The name of the header.
       
      optional string header_name = 110223613;
      Specified by:
      getHeaderName in interface HttpHeaderOptionOrBuilder
      Returns:
      The headerName.
    • getHeaderNameBytes

      public com.google.protobuf.ByteString getHeaderNameBytes()
       The name of the header.
       
      optional string header_name = 110223613;
      Specified by:
      getHeaderNameBytes in interface HttpHeaderOptionOrBuilder
      Returns:
      The bytes for headerName.
    • setHeaderName

      public HttpHeaderOption.Builder setHeaderName(String value)
       The name of the header.
       
      optional string header_name = 110223613;
      Parameters:
      value - The headerName to set.
      Returns:
      This builder for chaining.
    • clearHeaderName

      public HttpHeaderOption.Builder clearHeaderName()
       The name of the header.
       
      optional string header_name = 110223613;
      Returns:
      This builder for chaining.
    • setHeaderNameBytes

      public HttpHeaderOption.Builder setHeaderNameBytes(com.google.protobuf.ByteString value)
       The name of the header.
       
      optional string header_name = 110223613;
      Parameters:
      value - The bytes for headerName to set.
      Returns:
      This builder for chaining.
    • hasHeaderValue

      public boolean hasHeaderValue()
       The value of the header to add.
       
      optional string header_value = 203094335;
      Specified by:
      hasHeaderValue in interface HttpHeaderOptionOrBuilder
      Returns:
      Whether the headerValue field is set.
    • getHeaderValue

      public String getHeaderValue()
       The value of the header to add.
       
      optional string header_value = 203094335;
      Specified by:
      getHeaderValue in interface HttpHeaderOptionOrBuilder
      Returns:
      The headerValue.
    • getHeaderValueBytes

      public com.google.protobuf.ByteString getHeaderValueBytes()
       The value of the header to add.
       
      optional string header_value = 203094335;
      Specified by:
      getHeaderValueBytes in interface HttpHeaderOptionOrBuilder
      Returns:
      The bytes for headerValue.
    • setHeaderValue

      public HttpHeaderOption.Builder setHeaderValue(String value)
       The value of the header to add.
       
      optional string header_value = 203094335;
      Parameters:
      value - The headerValue to set.
      Returns:
      This builder for chaining.
    • clearHeaderValue

      public HttpHeaderOption.Builder clearHeaderValue()
       The value of the header to add.
       
      optional string header_value = 203094335;
      Returns:
      This builder for chaining.
    • setHeaderValueBytes

      public HttpHeaderOption.Builder setHeaderValueBytes(com.google.protobuf.ByteString value)
       The value of the header to add.
       
      optional string header_value = 203094335;
      Parameters:
      value - The bytes for headerValue to set.
      Returns:
      This builder for chaining.
    • hasReplace

      public boolean hasReplace()
       If false, headerValue is appended to any values
       that already
       exist for the header. If true, headerValue is set for the
       header, discarding any values that were set for that header.
      
       The default value is true,
       unless a variable is present in headerValue,
       in which case the default value is false.
       .
       
      optional bool replace = 20755124;
      Specified by:
      hasReplace in interface HttpHeaderOptionOrBuilder
      Returns:
      Whether the replace field is set.
    • getReplace

      public boolean getReplace()
       If false, headerValue is appended to any values
       that already
       exist for the header. If true, headerValue is set for the
       header, discarding any values that were set for that header.
      
       The default value is true,
       unless a variable is present in headerValue,
       in which case the default value is false.
       .
       
      optional bool replace = 20755124;
      Specified by:
      getReplace in interface HttpHeaderOptionOrBuilder
      Returns:
      The replace.
    • setReplace

      public HttpHeaderOption.Builder setReplace(boolean value)
       If false, headerValue is appended to any values
       that already
       exist for the header. If true, headerValue is set for the
       header, discarding any values that were set for that header.
      
       The default value is true,
       unless a variable is present in headerValue,
       in which case the default value is false.
       .
       
      optional bool replace = 20755124;
      Parameters:
      value - The replace to set.
      Returns:
      This builder for chaining.
    • clearReplace

      public HttpHeaderOption.Builder clearReplace()
       If false, headerValue is appended to any values
       that already
       exist for the header. If true, headerValue is set for the
       header, discarding any values that were set for that header.
      
       The default value is true,
       unless a variable is present in headerValue,
       in which case the default value is false.
       .
       
      optional bool replace = 20755124;
      Returns:
      This builder for chaining.