Class HttpHeaderAction (1.11.0)

public final class HttpHeaderAction extends 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

Static Fields

REQUEST_HEADERS_TO_ADD_FIELD_NUMBER

public static final int REQUEST_HEADERS_TO_ADD_FIELD_NUMBER
Field Value
TypeDescription
int

REQUEST_HEADERS_TO_REMOVE_FIELD_NUMBER

public static final int REQUEST_HEADERS_TO_REMOVE_FIELD_NUMBER
Field Value
TypeDescription
int

RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER

public static final int RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER
Field Value
TypeDescription
int

RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER

public static final int RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static HttpHeaderAction getDefaultInstance()
Returns
TypeDescription
HttpHeaderAction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static HttpHeaderAction.Builder newBuilder()
Returns
TypeDescription
HttpHeaderAction.Builder

newBuilder(HttpHeaderAction prototype)

public static HttpHeaderAction.Builder newBuilder(HttpHeaderAction prototype)
Parameter
NameDescription
prototypeHttpHeaderAction
Returns
TypeDescription
HttpHeaderAction.Builder

parseDelimitedFrom(InputStream input)

public static HttpHeaderAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HttpHeaderAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpHeaderAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpHeaderAction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static HttpHeaderAction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
HttpHeaderAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HttpHeaderAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpHeaderAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HttpHeaderAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
HttpHeaderAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HttpHeaderAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpHeaderAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HttpHeaderAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
HttpHeaderAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpHeaderAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpHeaderAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static HttpHeaderAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HttpHeaderAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpHeaderAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpHeaderAction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static HttpHeaderAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
HttpHeaderAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HttpHeaderAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HttpHeaderAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<HttpHeaderAction> parser()
Returns
TypeDescription
Parser<HttpHeaderAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public HttpHeaderAction getDefaultInstanceForType()
Returns
TypeDescription
HttpHeaderAction

getParserForType()

public Parser<HttpHeaderAction> getParserForType()
Returns
TypeDescription
Parser<HttpHeaderAction>
Overrides

getRequestHeadersToAdd(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
HttpHeaderOption

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;

Returns
TypeDescription
int

getRequestHeadersToAddList()

public List<HttpHeaderOption> getRequestHeadersToAddList()

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;

Returns
TypeDescription
List<HttpHeaderOption>

getRequestHeadersToAddOrBuilder(int index)

public HttpHeaderOptionOrBuilder getRequestHeadersToAddOrBuilder(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;

Parameter
NameDescription
indexint
Returns
TypeDescription
HttpHeaderOptionOrBuilder

getRequestHeadersToAddOrBuilderList()

public List<? extends HttpHeaderOptionOrBuilder> getRequestHeadersToAddOrBuilderList()

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;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.HttpHeaderOptionOrBuilder>

getRequestHeadersToRemove(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The requestHeadersToRemove at the given index.

getRequestHeadersToRemoveBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the requestHeadersToRemove at the given index.

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;

Returns
TypeDescription
int

The count of requestHeadersToRemove.

getRequestHeadersToRemoveList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the requestHeadersToRemove.

getResponseHeadersToAdd(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
HttpHeaderOption

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;

Returns
TypeDescription
int

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;

Returns
TypeDescription
List<HttpHeaderOption>

getResponseHeadersToAddOrBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
HttpHeaderOptionOrBuilder

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;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.HttpHeaderOptionOrBuilder>

getResponseHeadersToRemove(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The responseHeadersToRemove at the given index.

getResponseHeadersToRemoveBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the responseHeadersToRemove at the given index.

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;

Returns
TypeDescription
int

The count of responseHeadersToRemove.

getResponseHeadersToRemoveList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the responseHeadersToRemove.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public HttpHeaderAction.Builder newBuilderForType()
Returns
TypeDescription
HttpHeaderAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HttpHeaderAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
HttpHeaderAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public HttpHeaderAction.Builder toBuilder()
Returns
TypeDescription
HttpHeaderAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException