Send feedback
Class HttpHeaderOption (1.53.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.53.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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int HEADER_NAME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int HEADER_VALUE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int REPLACE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static HttpHeaderOption getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static HttpHeaderOption . Builder newBuilder ()
public static HttpHeaderOption . Builder newBuilder ( HttpHeaderOption prototype )
public static HttpHeaderOption parseDelimitedFrom ( InputStream input )
public static HttpHeaderOption parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static HttpHeaderOption parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static HttpHeaderOption parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static HttpHeaderOption parseFrom ( ByteString data )
public static HttpHeaderOption parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static HttpHeaderOption parseFrom ( CodedInputStream input )
public static HttpHeaderOption parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static HttpHeaderOption parseFrom ( InputStream input )
public static HttpHeaderOption parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static HttpHeaderOption parseFrom ( ByteBuffer data )
public static HttpHeaderOption parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<HttpHeaderOption> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public HttpHeaderOption getDefaultInstanceForType ()
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 ()
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
Type
Description
boolean
The replace.
public int getSerializedSize ()
Returns
Type
Description
int
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
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public HttpHeaderOption . Builder newBuilderForType ()
protected HttpHeaderOption . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public HttpHeaderOption . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
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."],[],[]]