Class HttpHeaderAction

  • All Implemented Interfaces:
    HttpHeaderActionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class HttpHeaderAction
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Field Detail

      • REQUEST_HEADERS_TO_ADD_FIELD_NUMBER

        public static final int REQUEST_HEADERS_TO_ADD_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REQUEST_HEADERS_TO_REMOVE_FIELD_NUMBER

        public static final int REQUEST_HEADERS_TO_REMOVE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER

        public static final int RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER

        public static final int RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getRequestHeadersToAddCount

        public int getRequestHeadersToAddCount()
         Headers to add to a matching request before forwarding the request to the backendService.
         
        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 the backendService.
         
        repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
        Specified by:
        getRequestHeadersToAdd in interface HttpHeaderActionOrBuilder
      • 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.
      • 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
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static HttpHeaderAction parseFrom​(ByteBuffer data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static HttpHeaderAction parseFrom​(ByteBuffer data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static HttpHeaderAction parseFrom​(com.google.protobuf.ByteString data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static HttpHeaderAction parseFrom​(com.google.protobuf.ByteString data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static HttpHeaderAction parseFrom​(byte[] data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static HttpHeaderAction parseFrom​(byte[] data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static HttpHeaderAction parseFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected HttpHeaderAction.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<HttpHeaderAction> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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