Class HttpHeaderOption (1.41.0)

public final class HttpHeaderOption extends GeneratedMessageV3 implements HttpHeaderOptionOrBuilder

Specification determining how headers are added to requests or responses.

Protobuf type google.cloud.compute.v1.HttpHeaderOption

Static Fields

HEADER_NAME_FIELD_NUMBER

public static final int HEADER_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

HEADER_VALUE_FIELD_NUMBER

public static final int HEADER_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

REPLACE_FIELD_NUMBER

public static final int REPLACE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static HttpHeaderOption getDefaultInstance()
Returns
TypeDescription
HttpHeaderOption

getDescriptor()

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

newBuilder()

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

newBuilder(HttpHeaderOption prototype)

public static HttpHeaderOption.Builder newBuilder(HttpHeaderOption prototype)
Parameter
NameDescription
prototypeHttpHeaderOption
Returns
TypeDescription
HttpHeaderOption.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public HttpHeaderOption getDefaultInstanceForType()
Returns
TypeDescription
HttpHeaderOption

getHeaderName()

public String getHeaderName()

The name of the header.

optional string header_name = 110223613;

Returns
TypeDescription
String

The headerName.

getHeaderNameBytes()

public ByteString getHeaderNameBytes()

The name of the header.

optional string header_name = 110223613;

Returns
TypeDescription
ByteString

The bytes for headerName.

getHeaderValue()

public String getHeaderValue()

The value of the header to add.

optional string header_value = 203094335;

Returns
TypeDescription
String

The headerValue.

getHeaderValueBytes()

public ByteString getHeaderValueBytes()

The value of the header to add.

optional string header_value = 203094335;

Returns
TypeDescription
ByteString

The bytes for headerValue.

getParserForType()

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

getReplace()

public boolean getReplace()

If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.

optional bool replace = 20755124;

Returns
TypeDescription
boolean

The replace.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasHeaderName()

public boolean hasHeaderName()

The name of the header.

optional string header_name = 110223613;

Returns
TypeDescription
boolean

Whether the headerName field is set.

hasHeaderValue()

public boolean hasHeaderValue()

The value of the header to add.

optional string header_value = 203094335;

Returns
TypeDescription
boolean

Whether the headerValue field is set.

hasReplace()

public boolean hasReplace()

If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.

optional bool replace = 20755124;

Returns
TypeDescription
boolean

Whether the replace field is set.

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 HttpHeaderOption.Builder newBuilderForType()
Returns
TypeDescription
HttpHeaderOption.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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