Send feedback
Class HttpHeaderAction (1.38.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.38.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
public static final int REQUEST_HEADERS_TO_ADD_FIELD_NUMBER
Field Value
Type
Description
int
public static final int REQUEST_HEADERS_TO_REMOVE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER
Field Value
Type
Description
int
public static final int RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static HttpHeaderAction getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static HttpHeaderAction . Builder newBuilder ()
public static HttpHeaderAction . Builder newBuilder ( HttpHeaderAction prototype )
public static HttpHeaderAction parseDelimitedFrom ( InputStream input )
public static HttpHeaderAction parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static HttpHeaderAction parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static HttpHeaderAction parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static HttpHeaderAction parseFrom ( ByteString data )
public static HttpHeaderAction parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static HttpHeaderAction parseFrom ( CodedInputStream input )
public static HttpHeaderAction parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static HttpHeaderAction parseFrom ( InputStream input )
public static HttpHeaderAction parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static HttpHeaderAction parseFrom ( ByteBuffer data )
public static HttpHeaderAction parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<HttpHeaderAction> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public HttpHeaderAction getDefaultInstanceForType ()
public Parser<HttpHeaderAction> getParserForType ()
Overrides
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
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
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;
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
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 >
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.
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.
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.
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;
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
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
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;
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
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 >
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.
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.
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.
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.
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public HttpHeaderAction . Builder newBuilderForType ()
protected HttpHeaderAction . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public HttpHeaderAction . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-07 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-07 UTC."],[],[]]