public static final class UrlMapTestHeader.Builder extends GeneratedMessageV3.Builder<UrlMapTestHeader.Builder> implements UrlMapTestHeaderOrBuilder
HTTP headers used in UrlMapTests.
Protobuf type google.cloud.compute.v1.UrlMapTestHeader
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public UrlMapTestHeader.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public UrlMapTestHeader build()
Returns
public UrlMapTestHeader buildPartial()
Returns
public UrlMapTestHeader.Builder clear()
Returns
Overrides
public UrlMapTestHeader.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public UrlMapTestHeader.Builder clearName()
Header name.
optional string name = 3373707;
Returns
public UrlMapTestHeader.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public UrlMapTestHeader.Builder clearValue()
Header value.
optional string value = 111972721;
Returns
public UrlMapTestHeader.Builder clone()
Returns
Overrides
public UrlMapTestHeader getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
Header name.
optional string name = 3373707;
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Header name.
optional string name = 3373707;
Returns
Header value.
optional string value = 111972721;
Returns
Type | Description |
String | The value.
|
public ByteString getValueBytes()
Header value.
optional string value = 111972721;
Returns
Header name.
optional string name = 3373707;
Returns
Type | Description |
boolean | Whether the name field is set.
|
public boolean hasValue()
Header value.
optional string value = 111972721;
Returns
Type | Description |
boolean | Whether the value field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public UrlMapTestHeader.Builder mergeFrom(UrlMapTestHeader other)
Parameter
Returns
public UrlMapTestHeader.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public UrlMapTestHeader.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final UrlMapTestHeader.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public UrlMapTestHeader.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public UrlMapTestHeader.Builder setName(String value)
Header name.
optional string name = 3373707;
Parameter
Name | Description |
value | String
The name to set.
|
Returns
public UrlMapTestHeader.Builder setNameBytes(ByteString value)
Header name.
optional string name = 3373707;
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
public UrlMapTestHeader.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final UrlMapTestHeader.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public UrlMapTestHeader.Builder setValue(String value)
Header value.
optional string value = 111972721;
Parameter
Name | Description |
value | String
The value to set.
|
Returns
public UrlMapTestHeader.Builder setValueBytes(ByteString value)
Header value.
optional string value = 111972721;
Parameter
Name | Description |
value | ByteString
The bytes for value to set.
|
Returns