Send feedback
Class HttpHeaderOption (1.20.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.20.0 keyboard_arrow_down
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]