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
Fields
public static final int REQUEST_HEADERS_TO_ADD_FIELD_NUMBER
Field Value
public static final int REQUEST_HEADERS_TO_REMOVE_FIELD_NUMBER
Field Value
public static final int RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER
Field Value
public static final int RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER
Field Value
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public static HttpHeaderAction getDefaultInstance()
Returns
public HttpHeaderAction getDefaultInstanceForType()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public Parser<HttpHeaderAction> getParserForType()
Returns
Overrides
public HttpHeaderOption getRequestHeadersToAdd(int index)
Headers to add to a matching request prior to forwarding the request to the backendService.
repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
Parameter
Returns
public int getRequestHeadersToAddCount()
Headers to add to a matching request prior to forwarding the request to the backendService.
repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
Returns
public List<HttpHeaderOption> getRequestHeadersToAddList()
Headers to add to a matching request prior to forwarding the request to the backendService.
repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
Returns
public HttpHeaderOptionOrBuilder getRequestHeadersToAddOrBuilder(int index)
Headers to add to a matching request prior to forwarding the request to the backendService.
repeated .google.cloud.compute.v1.HttpHeaderOption request_headers_to_add = 72111974;
Parameter
Returns
public List<? extends HttpHeaderOptionOrBuilder> getRequestHeadersToAddOrBuilderList()
Headers to add to a matching request prior to 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 prior to 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 prior to 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 prior to 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 prior to forwarding the request to the backendService.
repeated string request_headers_to_remove = 218425247;
Returns
public HttpHeaderOption getResponseHeadersToAdd(int index)
Headers to add the response prior to sending the response back to the client.
repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
Parameter
Returns
public int getResponseHeadersToAddCount()
Headers to add the response prior to sending the response back to the client.
repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
Returns
public List<HttpHeaderOption> getResponseHeadersToAddList()
Headers to add the response prior to sending the response back to the client.
repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
Returns
public HttpHeaderOptionOrBuilder getResponseHeadersToAddOrBuilder(int index)
Headers to add the response prior to sending the response back to the client.
repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;
Parameter
Returns
public List<? extends HttpHeaderOptionOrBuilder> getResponseHeadersToAddOrBuilderList()
Headers to add the response prior to 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 prior to 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 prior to 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 prior to 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 prior to sending the response back to the client.
repeated string response_headers_to_remove = 75415761;
Returns
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public static HttpHeaderAction.Builder newBuilder()
Returns
public static HttpHeaderAction.Builder newBuilder(HttpHeaderAction prototype)
Parameter
Returns
public HttpHeaderAction.Builder newBuilderForType()
Returns
protected HttpHeaderAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static HttpHeaderAction parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static HttpHeaderAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HttpHeaderAction parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static HttpHeaderAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HttpHeaderAction parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static HttpHeaderAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HttpHeaderAction parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static HttpHeaderAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HttpHeaderAction parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static HttpHeaderAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HttpHeaderAction parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static HttpHeaderAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<HttpHeaderAction> parser()
Returns
public HttpHeaderAction.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions