Class HTTPGetAction.Builder (0.17.0)

public static final class HTTPGetAction.Builder extends GeneratedMessageV3.Builder<HTTPGetAction.Builder> implements HTTPGetActionOrBuilder

HTTPGetAction describes an action based on HTTP Get requests.

Protobuf type google.cloud.run.v2.HTTPGetAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllHttpHeaders(Iterable<? extends HTTPHeader> values)

public HTTPGetAction.Builder addAllHttpHeaders(Iterable<? extends HTTPHeader> values)

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.run.v2.HTTPHeader>
Returns
TypeDescription
HTTPGetAction.Builder

addHttpHeaders(HTTPHeader value)

public HTTPGetAction.Builder addHttpHeaders(HTTPHeader value)

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Parameter
NameDescription
valueHTTPHeader
Returns
TypeDescription
HTTPGetAction.Builder

addHttpHeaders(HTTPHeader.Builder builderForValue)

public HTTPGetAction.Builder addHttpHeaders(HTTPHeader.Builder builderForValue)

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Parameter
NameDescription
builderForValueHTTPHeader.Builder
Returns
TypeDescription
HTTPGetAction.Builder

addHttpHeaders(int index, HTTPHeader value)

public HTTPGetAction.Builder addHttpHeaders(int index, HTTPHeader value)

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Parameters
NameDescription
indexint
valueHTTPHeader
Returns
TypeDescription
HTTPGetAction.Builder

addHttpHeaders(int index, HTTPHeader.Builder builderForValue)

public HTTPGetAction.Builder addHttpHeaders(int index, HTTPHeader.Builder builderForValue)

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Parameters
NameDescription
indexint
builderForValueHTTPHeader.Builder
Returns
TypeDescription
HTTPGetAction.Builder

addHttpHeadersBuilder()

public HTTPHeader.Builder addHttpHeadersBuilder()

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Returns
TypeDescription
HTTPHeader.Builder

addHttpHeadersBuilder(int index)

public HTTPHeader.Builder addHttpHeadersBuilder(int index)

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
HTTPHeader.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HTTPGetAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HTTPGetAction.Builder
Overrides

build()

public HTTPGetAction build()
Returns
TypeDescription
HTTPGetAction

buildPartial()

public HTTPGetAction buildPartial()
Returns
TypeDescription
HTTPGetAction

clear()

public HTTPGetAction.Builder clear()
Returns
TypeDescription
HTTPGetAction.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public HTTPGetAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
HTTPGetAction.Builder
Overrides

clearHttpHeaders()

public HTTPGetAction.Builder clearHttpHeaders()

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Returns
TypeDescription
HTTPGetAction.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public HTTPGetAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
HTTPGetAction.Builder
Overrides

clearPath()

public HTTPGetAction.Builder clearPath()

Path to access on the HTTP server. Defaults to '/'.

string path = 1;

Returns
TypeDescription
HTTPGetAction.Builder

This builder for chaining.

clearPort()

public HTTPGetAction.Builder clearPort()

Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.

int32 port = 5;

Returns
TypeDescription
HTTPGetAction.Builder

This builder for chaining.

clone()

public HTTPGetAction.Builder clone()
Returns
TypeDescription
HTTPGetAction.Builder
Overrides

getDefaultInstanceForType()

public HTTPGetAction getDefaultInstanceForType()
Returns
TypeDescription
HTTPGetAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHttpHeaders(int index)

public HTTPHeader getHttpHeaders(int index)

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
HTTPHeader

getHttpHeadersBuilder(int index)

public HTTPHeader.Builder getHttpHeadersBuilder(int index)

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
HTTPHeader.Builder

getHttpHeadersBuilderList()

public List<HTTPHeader.Builder> getHttpHeadersBuilderList()

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Returns
TypeDescription
List<Builder>

getHttpHeadersCount()

public int getHttpHeadersCount()

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Returns
TypeDescription
int

getHttpHeadersList()

public List<HTTPHeader> getHttpHeadersList()

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Returns
TypeDescription
List<HTTPHeader>

getHttpHeadersOrBuilder(int index)

public HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index)

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
HTTPHeaderOrBuilder

getHttpHeadersOrBuilderList()

public List<? extends HTTPHeaderOrBuilder> getHttpHeadersOrBuilderList()

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Returns
TypeDescription
List<? extends com.google.cloud.run.v2.HTTPHeaderOrBuilder>

getPath()

public String getPath()

Path to access on the HTTP server. Defaults to '/'.

string path = 1;

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

Path to access on the HTTP server. Defaults to '/'.

string path = 1;

Returns
TypeDescription
ByteString

The bytes for path.

getPort()

public int getPort()

Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.

int32 port = 5;

Returns
TypeDescription
int

The port.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HTTPGetAction other)

public HTTPGetAction.Builder mergeFrom(HTTPGetAction other)
Parameter
NameDescription
otherHTTPGetAction
Returns
TypeDescription
HTTPGetAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HTTPGetAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HTTPGetAction.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public HTTPGetAction.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
HTTPGetAction.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HTTPGetAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HTTPGetAction.Builder
Overrides

removeHttpHeaders(int index)

public HTTPGetAction.Builder removeHttpHeaders(int index)

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
HTTPGetAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public HTTPGetAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HTTPGetAction.Builder
Overrides

setHttpHeaders(int index, HTTPHeader value)

public HTTPGetAction.Builder setHttpHeaders(int index, HTTPHeader value)

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Parameters
NameDescription
indexint
valueHTTPHeader
Returns
TypeDescription
HTTPGetAction.Builder

setHttpHeaders(int index, HTTPHeader.Builder builderForValue)

public HTTPGetAction.Builder setHttpHeaders(int index, HTTPHeader.Builder builderForValue)

Custom headers to set in the request. HTTP allows repeated headers.

repeated .google.cloud.run.v2.HTTPHeader http_headers = 4;

Parameters
NameDescription
indexint
builderForValueHTTPHeader.Builder
Returns
TypeDescription
HTTPGetAction.Builder

setPath(String value)

public HTTPGetAction.Builder setPath(String value)

Path to access on the HTTP server. Defaults to '/'.

string path = 1;

Parameter
NameDescription
valueString

The path to set.

Returns
TypeDescription
HTTPGetAction.Builder

This builder for chaining.

setPathBytes(ByteString value)

public HTTPGetAction.Builder setPathBytes(ByteString value)

Path to access on the HTTP server. Defaults to '/'.

string path = 1;

Parameter
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
HTTPGetAction.Builder

This builder for chaining.

setPort(int value)

public HTTPGetAction.Builder setPort(int value)

Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.

int32 port = 5;

Parameter
NameDescription
valueint

The port to set.

Returns
TypeDescription
HTTPGetAction.Builder

This builder for chaining.

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

public HTTPGetAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
HTTPGetAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HTTPGetAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HTTPGetAction.Builder
Overrides