Class HttpHeaderAction (1.57.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
Type Description
int

REQUEST_HEADERS_TO_REMOVE_FIELD_NUMBER

public static final int REQUEST_HEADERS_TO_REMOVE_FIELD_NUMBER
Field Value
Type Description
int

RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER

public static final int RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER
Field Value
Type Description
int

RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER

public static final int RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HttpHeaderAction getDefaultInstance()
Returns
Type Description
HttpHeaderAction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static HttpHeaderAction.Builder newBuilder()
Returns
Type Description
HttpHeaderAction.Builder

newBuilder(HttpHeaderAction prototype)

public static HttpHeaderAction.Builder newBuilder(HttpHeaderAction prototype)
Parameter
Name Description
prototype HttpHeaderAction
Returns
Type Description
HttpHeaderAction.Builder

parseDelimitedFrom(InputStream input)

public static HttpHeaderAction parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HttpHeaderAction
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpHeaderAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpHeaderAction
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static HttpHeaderAction parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
HttpHeaderAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HttpHeaderAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpHeaderAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HttpHeaderAction parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
HttpHeaderAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HttpHeaderAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpHeaderAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HttpHeaderAction parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
HttpHeaderAction
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpHeaderAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpHeaderAction
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static HttpHeaderAction parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HttpHeaderAction
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpHeaderAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpHeaderAction
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static HttpHeaderAction parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
HttpHeaderAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HttpHeaderAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpHeaderAction
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<HttpHeaderAction> parser()
Returns
Type Description
Parser<HttpHeaderAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public HttpHeaderAction getDefaultInstanceForType()
Returns
Type Description
HttpHeaderAction

getParserForType()

public Parser<HttpHeaderAction> getParserForType()
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the responseHeadersToRemove.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public HttpHeaderAction.Builder newBuilderForType()
Returns
Type Description
HttpHeaderAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HttpHeaderAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HttpHeaderAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public HttpHeaderAction.Builder toBuilder()
Returns
Type Description
HttpHeaderAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException