Class HttpHeaderAction.Builder (1.54.0)

public static final class HttpHeaderAction.Builder extends GeneratedMessageV3.Builder<HttpHeaderAction.Builder> 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 Methods

getDescriptor()

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

Methods

addAllRequestHeadersToAdd(Iterable<? extends HttpHeaderOption> values)

public HttpHeaderAction.Builder addAllRequestHeadersToAdd(Iterable<? extends HttpHeaderOption> values)

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
values Iterable<? extends com.google.cloud.compute.v1.HttpHeaderOption>
Returns
Type Description
HttpHeaderAction.Builder

addAllRequestHeadersToRemove(Iterable<String> values)

public HttpHeaderAction.Builder addAllRequestHeadersToRemove(Iterable<String> values)

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
values Iterable<String>

The requestHeadersToRemove to add.

Returns
Type Description
HttpHeaderAction.Builder

This builder for chaining.

addAllResponseHeadersToAdd(Iterable<? extends HttpHeaderOption> values)

public HttpHeaderAction.Builder addAllResponseHeadersToAdd(Iterable<? extends HttpHeaderOption> values)

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
values Iterable<? extends com.google.cloud.compute.v1.HttpHeaderOption>
Returns
Type Description
HttpHeaderAction.Builder

addAllResponseHeadersToRemove(Iterable<String> values)

public HttpHeaderAction.Builder addAllResponseHeadersToRemove(Iterable<String> values)

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
values Iterable<String>

The responseHeadersToRemove to add.

Returns
Type Description
HttpHeaderAction.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HttpHeaderAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpHeaderAction.Builder
Overrides

addRequestHeadersToAdd(HttpHeaderOption value)

public HttpHeaderAction.Builder addRequestHeadersToAdd(HttpHeaderOption value)

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
value HttpHeaderOption
Returns
Type Description
HttpHeaderAction.Builder

addRequestHeadersToAdd(HttpHeaderOption.Builder builderForValue)

public HttpHeaderAction.Builder addRequestHeadersToAdd(HttpHeaderOption.Builder builderForValue)

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
builderForValue HttpHeaderOption.Builder
Returns
Type Description
HttpHeaderAction.Builder

addRequestHeadersToAdd(int index, HttpHeaderOption value)

public HttpHeaderAction.Builder addRequestHeadersToAdd(int index, HttpHeaderOption value)

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;

Parameters
Name Description
index int
value HttpHeaderOption
Returns
Type Description
HttpHeaderAction.Builder

addRequestHeadersToAdd(int index, HttpHeaderOption.Builder builderForValue)

public HttpHeaderAction.Builder addRequestHeadersToAdd(int index, HttpHeaderOption.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue HttpHeaderOption.Builder
Returns
Type Description
HttpHeaderAction.Builder

addRequestHeadersToAddBuilder()

public HttpHeaderOption.Builder addRequestHeadersToAddBuilder()

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
HttpHeaderOption.Builder

addRequestHeadersToAddBuilder(int index)

public HttpHeaderOption.Builder addRequestHeadersToAddBuilder(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.Builder

addRequestHeadersToRemove(String value)

public HttpHeaderAction.Builder addRequestHeadersToRemove(String value)

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
value String

The requestHeadersToRemove to add.

Returns
Type Description
HttpHeaderAction.Builder

This builder for chaining.

addRequestHeadersToRemoveBytes(ByteString value)

public HttpHeaderAction.Builder addRequestHeadersToRemoveBytes(ByteString value)

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
value ByteString

The bytes of the requestHeadersToRemove to add.

Returns
Type Description
HttpHeaderAction.Builder

This builder for chaining.

addResponseHeadersToAdd(HttpHeaderOption value)

public HttpHeaderAction.Builder addResponseHeadersToAdd(HttpHeaderOption value)

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
value HttpHeaderOption
Returns
Type Description
HttpHeaderAction.Builder

addResponseHeadersToAdd(HttpHeaderOption.Builder builderForValue)

public HttpHeaderAction.Builder addResponseHeadersToAdd(HttpHeaderOption.Builder builderForValue)

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
builderForValue HttpHeaderOption.Builder
Returns
Type Description
HttpHeaderAction.Builder

addResponseHeadersToAdd(int index, HttpHeaderOption value)

public HttpHeaderAction.Builder addResponseHeadersToAdd(int index, HttpHeaderOption value)

Headers to add the response before sending the response back to the client.

repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;

Parameters
Name Description
index int
value HttpHeaderOption
Returns
Type Description
HttpHeaderAction.Builder

addResponseHeadersToAdd(int index, HttpHeaderOption.Builder builderForValue)

public HttpHeaderAction.Builder addResponseHeadersToAdd(int index, HttpHeaderOption.Builder builderForValue)

Headers to add the response before sending the response back to the client.

repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;

Parameters
Name Description
index int
builderForValue HttpHeaderOption.Builder
Returns
Type Description
HttpHeaderAction.Builder

addResponseHeadersToAddBuilder()

public HttpHeaderOption.Builder addResponseHeadersToAddBuilder()

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
HttpHeaderOption.Builder

addResponseHeadersToAddBuilder(int index)

public HttpHeaderOption.Builder addResponseHeadersToAddBuilder(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.Builder

addResponseHeadersToRemove(String value)

public HttpHeaderAction.Builder addResponseHeadersToRemove(String value)

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
value String

The responseHeadersToRemove to add.

Returns
Type Description
HttpHeaderAction.Builder

This builder for chaining.

addResponseHeadersToRemoveBytes(ByteString value)

public HttpHeaderAction.Builder addResponseHeadersToRemoveBytes(ByteString value)

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
value ByteString

The bytes of the responseHeadersToRemove to add.

Returns
Type Description
HttpHeaderAction.Builder

This builder for chaining.

build()

public HttpHeaderAction build()
Returns
Type Description
HttpHeaderAction

buildPartial()

public HttpHeaderAction buildPartial()
Returns
Type Description
HttpHeaderAction

clear()

public HttpHeaderAction.Builder clear()
Returns
Type Description
HttpHeaderAction.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public HttpHeaderAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HttpHeaderAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public HttpHeaderAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
HttpHeaderAction.Builder
Overrides

clearRequestHeadersToAdd()

public HttpHeaderAction.Builder clearRequestHeadersToAdd()

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
HttpHeaderAction.Builder

clearRequestHeadersToRemove()

public HttpHeaderAction.Builder clearRequestHeadersToRemove()

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
HttpHeaderAction.Builder

This builder for chaining.

clearResponseHeadersToAdd()

public HttpHeaderAction.Builder clearResponseHeadersToAdd()

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
HttpHeaderAction.Builder

clearResponseHeadersToRemove()

public HttpHeaderAction.Builder clearResponseHeadersToRemove()

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
HttpHeaderAction.Builder

This builder for chaining.

clone()

public HttpHeaderAction.Builder clone()
Returns
Type Description
HttpHeaderAction.Builder
Overrides

getDefaultInstanceForType()

public HttpHeaderAction getDefaultInstanceForType()
Returns
Type Description
HttpHeaderAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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

getRequestHeadersToAddBuilder(int index)

public HttpHeaderOption.Builder getRequestHeadersToAddBuilder(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.Builder

getRequestHeadersToAddBuilderList()

public List<HttpHeaderOption.Builder> getRequestHeadersToAddBuilderList()

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<Builder>

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

getResponseHeadersToAddBuilder(int index)

public HttpHeaderOption.Builder getResponseHeadersToAddBuilder(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.Builder

getResponseHeadersToAddBuilderList()

public List<HttpHeaderOption.Builder> getResponseHeadersToAddBuilderList()

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<Builder>

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HttpHeaderAction other)

public HttpHeaderAction.Builder mergeFrom(HttpHeaderAction other)
Parameter
Name Description
other HttpHeaderAction
Returns
Type Description
HttpHeaderAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HttpHeaderAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpHeaderAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public HttpHeaderAction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
HttpHeaderAction.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpHeaderAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpHeaderAction.Builder
Overrides

removeRequestHeadersToAdd(int index)

public HttpHeaderAction.Builder removeRequestHeadersToAdd(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
HttpHeaderAction.Builder

removeResponseHeadersToAdd(int index)

public HttpHeaderAction.Builder removeResponseHeadersToAdd(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
HttpHeaderAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public HttpHeaderAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpHeaderAction.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HttpHeaderAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
HttpHeaderAction.Builder
Overrides

setRequestHeadersToAdd(int index, HttpHeaderOption value)

public HttpHeaderAction.Builder setRequestHeadersToAdd(int index, HttpHeaderOption value)

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;

Parameters
Name Description
index int
value HttpHeaderOption
Returns
Type Description
HttpHeaderAction.Builder

setRequestHeadersToAdd(int index, HttpHeaderOption.Builder builderForValue)

public HttpHeaderAction.Builder setRequestHeadersToAdd(int index, HttpHeaderOption.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue HttpHeaderOption.Builder
Returns
Type Description
HttpHeaderAction.Builder

setRequestHeadersToRemove(int index, String value)

public HttpHeaderAction.Builder setRequestHeadersToRemove(int index, String value)

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;

Parameters
Name Description
index int

The index to set the value at.

value String

The requestHeadersToRemove to set.

Returns
Type Description
HttpHeaderAction.Builder

This builder for chaining.

setResponseHeadersToAdd(int index, HttpHeaderOption value)

public HttpHeaderAction.Builder setResponseHeadersToAdd(int index, HttpHeaderOption value)

Headers to add the response before sending the response back to the client.

repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;

Parameters
Name Description
index int
value HttpHeaderOption
Returns
Type Description
HttpHeaderAction.Builder

setResponseHeadersToAdd(int index, HttpHeaderOption.Builder builderForValue)

public HttpHeaderAction.Builder setResponseHeadersToAdd(int index, HttpHeaderOption.Builder builderForValue)

Headers to add the response before sending the response back to the client.

repeated .google.cloud.compute.v1.HttpHeaderOption response_headers_to_add = 32136052;

Parameters
Name Description
index int
builderForValue HttpHeaderOption.Builder
Returns
Type Description
HttpHeaderAction.Builder

setResponseHeadersToRemove(int index, String value)

public HttpHeaderAction.Builder setResponseHeadersToRemove(int index, String value)

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;

Parameters
Name Description
index int

The index to set the value at.

value String

The responseHeadersToRemove to set.

Returns
Type Description
HttpHeaderAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final HttpHeaderAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpHeaderAction.Builder
Overrides