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
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;
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public final UnknownFieldSet getUnknownFields()
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)
Overrides
public HttpHeaderAction.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides