Class SystemParameters (2.9.0)

public final class SystemParameters extends GeneratedMessageV3 implements SystemParametersOrBuilder

System parameter configuration

A system parameter is a special kind of parameter defined by the API system, not by an individual API. It is typically mapped to an HTTP header and/or a URL query parameter. This configuration specifies which methods change the names of the system parameters.

Protobuf type google.api.SystemParameters

Static Fields

RULES_FIELD_NUMBER

public static final int RULES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SystemParameters getDefaultInstance()
Returns
TypeDescription
SystemParameters

getDescriptor()

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

newBuilder()

public static SystemParameters.Builder newBuilder()
Returns
TypeDescription
SystemParameters.Builder

newBuilder(SystemParameters prototype)

public static SystemParameters.Builder newBuilder(SystemParameters prototype)
Parameter
NameDescription
prototypeSystemParameters
Returns
TypeDescription
SystemParameters.Builder

parseDelimitedFrom(InputStream input)

public static SystemParameters parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SystemParameters
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SystemParameters parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SystemParameters
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SystemParameters parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SystemParameters
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SystemParameters parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SystemParameters
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SystemParameters parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SystemParameters
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SystemParameters parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SystemParameters
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SystemParameters parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SystemParameters
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SystemParameters parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SystemParameters
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SystemParameters parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SystemParameters
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SystemParameters parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SystemParameters
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SystemParameters parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SystemParameters
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SystemParameters parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SystemParameters
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SystemParameters> parser()
Returns
TypeDescription
Parser<SystemParameters>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SystemParameters getDefaultInstanceForType()
Returns
TypeDescription
SystemParameters

getParserForType()

public Parser<SystemParameters> getParserForType()
Returns
TypeDescription
Parser<SystemParameters>
Overrides

getRules(int index)

public SystemParameterRule getRules(int index)

Define system parameters. The parameters defined here will override the default parameters implemented by the system. If this field is missing from the service config, default system parameters will be used. Default system parameters and names is implementation-dependent. Example: define api key for all methods system_parameters rules:

  • selector: "*" parameters:
    • name: api_key url_query_parameter: api_key Example: define 2 api key names for a specific method. system_parameters rules:
  • selector: "/ListShelves" parameters:
    • name: api_key http_header: Api-Key1
    • name: api_key http_header: Api-Key2 NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.SystemParameterRule rules = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
SystemParameterRule

getRulesCount()

public int getRulesCount()

Define system parameters. The parameters defined here will override the default parameters implemented by the system. If this field is missing from the service config, default system parameters will be used. Default system parameters and names is implementation-dependent. Example: define api key for all methods system_parameters rules:

  • selector: "*" parameters:
    • name: api_key url_query_parameter: api_key Example: define 2 api key names for a specific method. system_parameters rules:
  • selector: "/ListShelves" parameters:
    • name: api_key http_header: Api-Key1
    • name: api_key http_header: Api-Key2 NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.SystemParameterRule rules = 1;

Returns
TypeDescription
int

getRulesList()

public List<SystemParameterRule> getRulesList()

Define system parameters. The parameters defined here will override the default parameters implemented by the system. If this field is missing from the service config, default system parameters will be used. Default system parameters and names is implementation-dependent. Example: define api key for all methods system_parameters rules:

  • selector: "*" parameters:
    • name: api_key url_query_parameter: api_key Example: define 2 api key names for a specific method. system_parameters rules:
  • selector: "/ListShelves" parameters:
    • name: api_key http_header: Api-Key1
    • name: api_key http_header: Api-Key2 NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.SystemParameterRule rules = 1;

Returns
TypeDescription
List<SystemParameterRule>

getRulesOrBuilder(int index)

public SystemParameterRuleOrBuilder getRulesOrBuilder(int index)

Define system parameters. The parameters defined here will override the default parameters implemented by the system. If this field is missing from the service config, default system parameters will be used. Default system parameters and names is implementation-dependent. Example: define api key for all methods system_parameters rules:

  • selector: "*" parameters:
    • name: api_key url_query_parameter: api_key Example: define 2 api key names for a specific method. system_parameters rules:
  • selector: "/ListShelves" parameters:
    • name: api_key http_header: Api-Key1
    • name: api_key http_header: Api-Key2 NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.SystemParameterRule rules = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
SystemParameterRuleOrBuilder

getRulesOrBuilderList()

public List<? extends SystemParameterRuleOrBuilder> getRulesOrBuilderList()

Define system parameters. The parameters defined here will override the default parameters implemented by the system. If this field is missing from the service config, default system parameters will be used. Default system parameters and names is implementation-dependent. Example: define api key for all methods system_parameters rules:

  • selector: "*" parameters:
    • name: api_key url_query_parameter: api_key Example: define 2 api key names for a specific method. system_parameters rules:
  • selector: "/ListShelves" parameters:
    • name: api_key http_header: Api-Key1
    • name: api_key http_header: Api-Key2 NOTE: All service configuration rules follow "last one wins" order.

repeated .google.api.SystemParameterRule rules = 1;

Returns
TypeDescription
List<? extends com.google.api.SystemParameterRuleOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SystemParameters.Builder newBuilderForType()
Returns
TypeDescription
SystemParameters.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SystemParameters.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SystemParameters.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SystemParameters.Builder toBuilder()
Returns
TypeDescription
SystemParameters.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException