Class SystemParameter.Builder (2.30.0)

public static final class SystemParameter.Builder extends GeneratedMessageV3.Builder<SystemParameter.Builder> implements SystemParameterOrBuilder

Define a parameter's name and location. The parameter may be passed as either an HTTP header or a URL query parameter, and if both are passed the behavior is implementation-dependent.

Protobuf type google.api.SystemParameter

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SystemParameter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SystemParameter.Builder
Overrides

build()

public SystemParameter build()
Returns
TypeDescription
SystemParameter

buildPartial()

public SystemParameter buildPartial()
Returns
TypeDescription
SystemParameter

clear()

public SystemParameter.Builder clear()
Returns
TypeDescription
SystemParameter.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SystemParameter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SystemParameter.Builder
Overrides

clearHttpHeader()

public SystemParameter.Builder clearHttpHeader()

Define the HTTP header name to use for the parameter. It is case insensitive.

string http_header = 2;

Returns
TypeDescription
SystemParameter.Builder

This builder for chaining.

clearName()

public SystemParameter.Builder clearName()

Define the name of the parameter, such as "api_key" . It is case sensitive.

string name = 1;

Returns
TypeDescription
SystemParameter.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SystemParameter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SystemParameter.Builder
Overrides

clearUrlQueryParameter()

public SystemParameter.Builder clearUrlQueryParameter()

Define the URL query parameter name to use for the parameter. It is case sensitive.

string url_query_parameter = 3;

Returns
TypeDescription
SystemParameter.Builder

This builder for chaining.

clone()

public SystemParameter.Builder clone()
Returns
TypeDescription
SystemParameter.Builder
Overrides

getDefaultInstanceForType()

public SystemParameter getDefaultInstanceForType()
Returns
TypeDescription
SystemParameter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHttpHeader()

public String getHttpHeader()

Define the HTTP header name to use for the parameter. It is case insensitive.

string http_header = 2;

Returns
TypeDescription
String

The httpHeader.

getHttpHeaderBytes()

public ByteString getHttpHeaderBytes()

Define the HTTP header name to use for the parameter. It is case insensitive.

string http_header = 2;

Returns
TypeDescription
ByteString

The bytes for httpHeader.

getName()

public String getName()

Define the name of the parameter, such as "api_key" . It is case sensitive.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Define the name of the parameter, such as "api_key" . It is case sensitive.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getUrlQueryParameter()

public String getUrlQueryParameter()

Define the URL query parameter name to use for the parameter. It is case sensitive.

string url_query_parameter = 3;

Returns
TypeDescription
String

The urlQueryParameter.

getUrlQueryParameterBytes()

public ByteString getUrlQueryParameterBytes()

Define the URL query parameter name to use for the parameter. It is case sensitive.

string url_query_parameter = 3;

Returns
TypeDescription
ByteString

The bytes for urlQueryParameter.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SystemParameter other)

public SystemParameter.Builder mergeFrom(SystemParameter other)
Parameter
NameDescription
otherSystemParameter
Returns
TypeDescription
SystemParameter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SystemParameter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SystemParameter.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SystemParameter.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SystemParameter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SystemParameter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SystemParameter.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SystemParameter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SystemParameter.Builder
Overrides

setHttpHeader(String value)

public SystemParameter.Builder setHttpHeader(String value)

Define the HTTP header name to use for the parameter. It is case insensitive.

string http_header = 2;

Parameter
NameDescription
valueString

The httpHeader to set.

Returns
TypeDescription
SystemParameter.Builder

This builder for chaining.

setHttpHeaderBytes(ByteString value)

public SystemParameter.Builder setHttpHeaderBytes(ByteString value)

Define the HTTP header name to use for the parameter. It is case insensitive.

string http_header = 2;

Parameter
NameDescription
valueByteString

The bytes for httpHeader to set.

Returns
TypeDescription
SystemParameter.Builder

This builder for chaining.

setName(String value)

public SystemParameter.Builder setName(String value)

Define the name of the parameter, such as "api_key" . It is case sensitive.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
SystemParameter.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SystemParameter.Builder setNameBytes(ByteString value)

Define the name of the parameter, such as "api_key" . It is case sensitive.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
SystemParameter.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SystemParameter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SystemParameter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SystemParameter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SystemParameter.Builder
Overrides

setUrlQueryParameter(String value)

public SystemParameter.Builder setUrlQueryParameter(String value)

Define the URL query parameter name to use for the parameter. It is case sensitive.

string url_query_parameter = 3;

Parameter
NameDescription
valueString

The urlQueryParameter to set.

Returns
TypeDescription
SystemParameter.Builder

This builder for chaining.

setUrlQueryParameterBytes(ByteString value)

public SystemParameter.Builder setUrlQueryParameterBytes(ByteString value)

Define the URL query parameter name to use for the parameter. It is case sensitive.

string url_query_parameter = 3;

Parameter
NameDescription
valueByteString

The bytes for urlQueryParameter to set.

Returns
TypeDescription
SystemParameter.Builder

This builder for chaining.