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
public static final int HEADER_NAME_FIELD_NUMBER
Field Value
public static final int HEADER_VALUE_FIELD_NUMBER
Field Value
public static final int REPLACE_FIELD_NUMBER
Field Value
Static Methods
public static HttpHeaderOption getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static HttpHeaderOption.Builder newBuilder()
Returns
public static HttpHeaderOption.Builder newBuilder(HttpHeaderOption prototype)
Parameter
Returns
public static HttpHeaderOption parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static HttpHeaderOption parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HttpHeaderOption parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static HttpHeaderOption parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HttpHeaderOption parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static HttpHeaderOption parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HttpHeaderOption parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static HttpHeaderOption parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HttpHeaderOption parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static HttpHeaderOption parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HttpHeaderOption parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static HttpHeaderOption parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<HttpHeaderOption> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public HttpHeaderOption getDefaultInstanceForType()
Returns
public String getHeaderName()
The name of the header.
optional string header_name = 110223613;
Returns
Type | Description |
String | The headerName.
|
public ByteString getHeaderNameBytes()
The name of the header.
optional string header_name = 110223613;
Returns
Type | Description |
ByteString | The bytes for headerName.
|
public String getHeaderValue()
The value of the header to add.
optional string header_value = 203094335;
Returns
Type | Description |
String | The headerValue.
|
public ByteString getHeaderValueBytes()
The value of the header to add.
optional string header_value = 203094335;
Returns
Type | Description |
ByteString | The bytes for headerValue.
|
public Parser<HttpHeaderOption> getParserForType()
Returns
Overrides
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
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public boolean hasHeaderName()
The name of the header.
optional string header_name = 110223613;
Returns
Type | Description |
boolean | Whether the headerName field is set.
|
public boolean hasHeaderValue()
The value of the header to add.
optional string header_value = 203094335;
Returns
Type | Description |
boolean | Whether the headerValue field is set.
|
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
Type | Description |
boolean | Whether the replace field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public HttpHeaderOption.Builder newBuilderForType()
Returns
protected HttpHeaderOption.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public HttpHeaderOption.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions