Class HTTPGetAction (0.24.0)

public final class HTTPGetAction extends GeneratedMessageV3 implements HTTPGetActionOrBuilder

HTTPGetAction describes an action based on HTTP Get requests.

Protobuf type google.cloud.run.v2.HTTPGetAction

Static Fields

HTTP_HEADERS_FIELD_NUMBER

public static final int HTTP_HEADERS_FIELD_NUMBER
Field Value
TypeDescription
int

PATH_FIELD_NUMBER

public static final int PATH_FIELD_NUMBER
Field Value
TypeDescription
int

PORT_FIELD_NUMBER

public static final int PORT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static HTTPGetAction getDefaultInstance()
Returns
TypeDescription
HTTPGetAction

getDescriptor()

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

newBuilder()

public static HTTPGetAction.Builder newBuilder()
Returns
TypeDescription
HTTPGetAction.Builder

newBuilder(HTTPGetAction prototype)

public static HTTPGetAction.Builder newBuilder(HTTPGetAction prototype)
Parameter
NameDescription
prototypeHTTPGetAction
Returns
TypeDescription
HTTPGetAction.Builder

parseDelimitedFrom(InputStream input)

public static HTTPGetAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HTTPGetAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HTTPGetAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HTTPGetAction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static HTTPGetAction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
HTTPGetAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HTTPGetAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HTTPGetAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HTTPGetAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
HTTPGetAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HTTPGetAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HTTPGetAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HTTPGetAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
HTTPGetAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HTTPGetAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HTTPGetAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static HTTPGetAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HTTPGetAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HTTPGetAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HTTPGetAction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static HTTPGetAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
HTTPGetAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HTTPGetAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HTTPGetAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<HTTPGetAction> parser()
Returns
TypeDescription
Parser<HTTPGetAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public HTTPGetAction getDefaultInstanceForType()
Returns
TypeDescription
HTTPGetAction

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

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>

getParserForType()

public Parser<HTTPGetAction> getParserForType()
Returns
TypeDescription
Parser<HTTPGetAction>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public HTTPGetAction.Builder newBuilderForType()
Returns
TypeDescription
HTTPGetAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HTTPGetAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
HTTPGetAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public HTTPGetAction.Builder toBuilder()
Returns
TypeDescription
HTTPGetAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException