Class HttpHeaderAction.Builder

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

public static final class HttpHeaderAction.Builder extends com.google.protobuf.GeneratedMessage.Builder<HttpHeaderAction.Builder> implements HttpHeaderActionOrBuilder
 The request and response header transformations that take effect before
 the request is passed along to the selected backendService.
 
Protobuf type google.cloud.compute.v1.HttpHeaderAction
  • 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<HttpHeaderAction.Builder>
    • clear

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

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

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

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

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

      public HttpHeaderAction.Builder mergeFrom(HttpHeaderAction other)
    • isInitialized

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

      public HttpHeaderAction.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<HttpHeaderAction.Builder>
      Throws:
      IOException
    • getRequestHeadersToAddList

      public List<HttpHeaderOption> getRequestHeadersToAddList()
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
      Specified by:
      getRequestHeadersToAddList in interface HttpHeaderActionOrBuilder
    • getRequestHeadersToAddCount

      public int getRequestHeadersToAddCount()
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
      Specified by:
      getRequestHeadersToAddCount in interface HttpHeaderActionOrBuilder
    • getRequestHeadersToAdd

      public HttpHeaderOption getRequestHeadersToAdd(int index)
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
      Specified by:
      getRequestHeadersToAdd in interface HttpHeaderActionOrBuilder
    • setRequestHeadersToAdd

      public HttpHeaderAction.Builder setRequestHeadersToAdd(int index, HttpHeaderOption value)
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
    • setRequestHeadersToAdd

      public HttpHeaderAction.Builder setRequestHeadersToAdd(int index, HttpHeaderOption.Builder builderForValue)
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
    • addRequestHeadersToAdd

      public HttpHeaderAction.Builder addRequestHeadersToAdd(HttpHeaderOption value)
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
    • addRequestHeadersToAdd

      public HttpHeaderAction.Builder addRequestHeadersToAdd(int index, HttpHeaderOption value)
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
    • addRequestHeadersToAdd

      public HttpHeaderAction.Builder addRequestHeadersToAdd(HttpHeaderOption.Builder builderForValue)
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
    • addRequestHeadersToAdd

      public HttpHeaderAction.Builder addRequestHeadersToAdd(int index, HttpHeaderOption.Builder builderForValue)
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
    • addAllRequestHeadersToAdd

      public HttpHeaderAction.Builder addAllRequestHeadersToAdd(Iterable<? extends HttpHeaderOption> values)
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
    • clearRequestHeadersToAdd

      public HttpHeaderAction.Builder clearRequestHeadersToAdd()
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
    • removeRequestHeadersToAdd

      public HttpHeaderAction.Builder removeRequestHeadersToAdd(int index)
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
    • getRequestHeadersToAddBuilder

      public HttpHeaderOption.Builder getRequestHeadersToAddBuilder(int index)
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
    • getRequestHeadersToAddOrBuilder

      public HttpHeaderOptionOrBuilder getRequestHeadersToAddOrBuilder(int index)
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
      Specified by:
      getRequestHeadersToAddOrBuilder in interface HttpHeaderActionOrBuilder
    • getRequestHeadersToAddOrBuilderList

      public List<? extends HttpHeaderOptionOrBuilder> getRequestHeadersToAddOrBuilderList()
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
      Specified by:
      getRequestHeadersToAddOrBuilderList in interface HttpHeaderActionOrBuilder
    • addRequestHeadersToAddBuilder

      public HttpHeaderOption.Builder addRequestHeadersToAddBuilder()
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
    • addRequestHeadersToAddBuilder

      public HttpHeaderOption.Builder addRequestHeadersToAddBuilder(int index)
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
    • getRequestHeadersToAddBuilderList

      public List<HttpHeaderOption.Builder> getRequestHeadersToAddBuilderList()
       Headers to add to a matching request before forwarding the request to thebackendService.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
    • getRequestHeadersToRemoveList

      public com.google.protobuf.ProtocolStringList getRequestHeadersToRemoveList()
       A list of header names for headers that need to be removed from the
       request before forwarding the request to the backendService.
       
      repeated string request_headers_to_remove = 218425247;
      Specified by:
      getRequestHeadersToRemoveList in interface HttpHeaderActionOrBuilder
      Returns:
      A list containing the requestHeadersToRemove.
    • getRequestHeadersToRemoveCount

      public int getRequestHeadersToRemoveCount()
       A list of header names for headers that need to be removed from the
       request before forwarding the request to the backendService.
       
      repeated string request_headers_to_remove = 218425247;
      Specified by:
      getRequestHeadersToRemoveCount in interface HttpHeaderActionOrBuilder
      Returns:
      The count of requestHeadersToRemove.
    • getRequestHeadersToRemove

      public String getRequestHeadersToRemove(int index)
       A list of header names for headers that need to be removed from the
       request before forwarding the request to the backendService.
       
      repeated string request_headers_to_remove = 218425247;
      Specified by:
      getRequestHeadersToRemove in interface HttpHeaderActionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The requestHeadersToRemove at the given index.
    • getRequestHeadersToRemoveBytes

      public com.google.protobuf.ByteString getRequestHeadersToRemoveBytes(int index)
       A list of header names for headers that need to be removed from the
       request before forwarding the request to the backendService.
       
      repeated string request_headers_to_remove = 218425247;
      Specified by:
      getRequestHeadersToRemoveBytes in interface HttpHeaderActionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the requestHeadersToRemove at the given index.
    • setRequestHeadersToRemove

      public HttpHeaderAction.Builder setRequestHeadersToRemove(int index, String value)
       A list of header names for headers that need to be removed from the
       request before forwarding the request to the backendService.
       
      repeated string request_headers_to_remove = 218425247;
      Parameters:
      index - The index to set the value at.
      value - The requestHeadersToRemove to set.
      Returns:
      This builder for chaining.
    • addRequestHeadersToRemove

      public HttpHeaderAction.Builder addRequestHeadersToRemove(String value)
       A list of header names for headers that need to be removed from the
       request before forwarding the request to the backendService.
       
      repeated string request_headers_to_remove = 218425247;
      Parameters:
      value - The requestHeadersToRemove to add.
      Returns:
      This builder for chaining.
    • addAllRequestHeadersToRemove

      public HttpHeaderAction.Builder addAllRequestHeadersToRemove(Iterable<String> values)
       A list of header names for headers that need to be removed from the
       request before forwarding the request to the backendService.
       
      repeated string request_headers_to_remove = 218425247;
      Parameters:
      values - The requestHeadersToRemove to add.
      Returns:
      This builder for chaining.
    • clearRequestHeadersToRemove

      public HttpHeaderAction.Builder clearRequestHeadersToRemove()
       A list of header names for headers that need to be removed from the
       request before forwarding the request to the backendService.
       
      repeated string request_headers_to_remove = 218425247;
      Returns:
      This builder for chaining.
    • addRequestHeadersToRemoveBytes

      public HttpHeaderAction.Builder addRequestHeadersToRemoveBytes(com.google.protobuf.ByteString value)
       A list of header names for headers that need to be removed from the
       request before forwarding the request to the backendService.
       
      repeated string request_headers_to_remove = 218425247;
      Parameters:
      value - The bytes of the requestHeadersToRemove to add.
      Returns:
      This builder for chaining.
    • getResponseHeadersToAddList

      public List<HttpHeaderOption> getResponseHeadersToAddList()
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
      Specified by:
      getResponseHeadersToAddList in interface HttpHeaderActionOrBuilder
    • getResponseHeadersToAddCount

      public int getResponseHeadersToAddCount()
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
      Specified by:
      getResponseHeadersToAddCount in interface HttpHeaderActionOrBuilder
    • getResponseHeadersToAdd

      public HttpHeaderOption getResponseHeadersToAdd(int index)
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
      Specified by:
      getResponseHeadersToAdd in interface HttpHeaderActionOrBuilder
    • setResponseHeadersToAdd

      public HttpHeaderAction.Builder setResponseHeadersToAdd(int index, HttpHeaderOption value)
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
    • setResponseHeadersToAdd

      public HttpHeaderAction.Builder setResponseHeadersToAdd(int index, HttpHeaderOption.Builder builderForValue)
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
    • addResponseHeadersToAdd

      public HttpHeaderAction.Builder addResponseHeadersToAdd(HttpHeaderOption value)
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
    • addResponseHeadersToAdd

      public HttpHeaderAction.Builder addResponseHeadersToAdd(int index, HttpHeaderOption value)
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
    • addResponseHeadersToAdd

      public HttpHeaderAction.Builder addResponseHeadersToAdd(HttpHeaderOption.Builder builderForValue)
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
    • addResponseHeadersToAdd

      public HttpHeaderAction.Builder addResponseHeadersToAdd(int index, HttpHeaderOption.Builder builderForValue)
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
    • addAllResponseHeadersToAdd

      public HttpHeaderAction.Builder addAllResponseHeadersToAdd(Iterable<? extends HttpHeaderOption> values)
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
    • clearResponseHeadersToAdd

      public HttpHeaderAction.Builder clearResponseHeadersToAdd()
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
    • removeResponseHeadersToAdd

      public HttpHeaderAction.Builder removeResponseHeadersToAdd(int index)
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
    • getResponseHeadersToAddBuilder

      public HttpHeaderOption.Builder getResponseHeadersToAddBuilder(int index)
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
    • getResponseHeadersToAddOrBuilder

      public HttpHeaderOptionOrBuilder getResponseHeadersToAddOrBuilder(int index)
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
      Specified by:
      getResponseHeadersToAddOrBuilder in interface HttpHeaderActionOrBuilder
    • getResponseHeadersToAddOrBuilderList

      public List<? extends HttpHeaderOptionOrBuilder> getResponseHeadersToAddOrBuilderList()
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
      Specified by:
      getResponseHeadersToAddOrBuilderList in interface HttpHeaderActionOrBuilder
    • addResponseHeadersToAddBuilder

      public HttpHeaderOption.Builder addResponseHeadersToAddBuilder()
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
    • addResponseHeadersToAddBuilder

      public HttpHeaderOption.Builder addResponseHeadersToAddBuilder(int index)
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
    • getResponseHeadersToAddBuilderList

      public List<HttpHeaderOption.Builder> getResponseHeadersToAddBuilderList()
       Headers to add the response before sending the response back to the
       client.
       
      repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
    • getResponseHeadersToRemoveList

      public com.google.protobuf.ProtocolStringList getResponseHeadersToRemoveList()
       A list of header names for headers that need to be removed from the
       response before sending the response back to the client.
       
      repeated string response_headers_to_remove = 75415761;
      Specified by:
      getResponseHeadersToRemoveList in interface HttpHeaderActionOrBuilder
      Returns:
      A list containing the responseHeadersToRemove.
    • getResponseHeadersToRemoveCount

      public int getResponseHeadersToRemoveCount()
       A list of header names for headers that need to be removed from the
       response before sending the response back to the client.
       
      repeated string response_headers_to_remove = 75415761;
      Specified by:
      getResponseHeadersToRemoveCount in interface HttpHeaderActionOrBuilder
      Returns:
      The count of responseHeadersToRemove.
    • getResponseHeadersToRemove

      public String getResponseHeadersToRemove(int index)
       A list of header names for headers that need to be removed from the
       response before sending the response back to the client.
       
      repeated string response_headers_to_remove = 75415761;
      Specified by:
      getResponseHeadersToRemove in interface HttpHeaderActionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The responseHeadersToRemove at the given index.
    • getResponseHeadersToRemoveBytes

      public com.google.protobuf.ByteString getResponseHeadersToRemoveBytes(int index)
       A list of header names for headers that need to be removed from the
       response before sending the response back to the client.
       
      repeated string response_headers_to_remove = 75415761;
      Specified by:
      getResponseHeadersToRemoveBytes in interface HttpHeaderActionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the responseHeadersToRemove at the given index.
    • setResponseHeadersToRemove

      public HttpHeaderAction.Builder setResponseHeadersToRemove(int index, String value)
       A list of header names for headers that need to be removed from the
       response before sending the response back to the client.
       
      repeated string response_headers_to_remove = 75415761;
      Parameters:
      index - The index to set the value at.
      value - The responseHeadersToRemove to set.
      Returns:
      This builder for chaining.
    • addResponseHeadersToRemove

      public HttpHeaderAction.Builder addResponseHeadersToRemove(String value)
       A list of header names for headers that need to be removed from the
       response before sending the response back to the client.
       
      repeated string response_headers_to_remove = 75415761;
      Parameters:
      value - The responseHeadersToRemove to add.
      Returns:
      This builder for chaining.
    • addAllResponseHeadersToRemove

      public HttpHeaderAction.Builder addAllResponseHeadersToRemove(Iterable<String> values)
       A list of header names for headers that need to be removed from the
       response before sending the response back to the client.
       
      repeated string response_headers_to_remove = 75415761;
      Parameters:
      values - The responseHeadersToRemove to add.
      Returns:
      This builder for chaining.
    • clearResponseHeadersToRemove

      public HttpHeaderAction.Builder clearResponseHeadersToRemove()
       A list of header names for headers that need to be removed from the
       response before sending the response back to the client.
       
      repeated string response_headers_to_remove = 75415761;
      Returns:
      This builder for chaining.
    • addResponseHeadersToRemoveBytes

      public HttpHeaderAction.Builder addResponseHeadersToRemoveBytes(com.google.protobuf.ByteString value)
       A list of header names for headers that need to be removed from the
       response before sending the response back to the client.
       
      repeated string response_headers_to_remove = 75415761;
      Parameters:
      value - The bytes of the responseHeadersToRemove to add.
      Returns:
      This builder for chaining.