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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SystemParametersImplements
SystemParametersOrBuilderStatic Fields
RULES_FIELD_NUMBER
public static final int RULES_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static SystemParameters getDefaultInstance()
Type | Description |
SystemParameters |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static SystemParameters.Builder newBuilder()
Type | Description |
SystemParameters.Builder |
newBuilder(SystemParameters prototype)
public static SystemParameters.Builder newBuilder(SystemParameters prototype)
Name | Description |
prototype | SystemParameters |
Type | Description |
SystemParameters.Builder |
parseDelimitedFrom(InputStream input)
public static SystemParameters parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
SystemParameters |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SystemParameters parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SystemParameters |
Type | Description |
IOException |
parseFrom(byte[] data)
public static SystemParameters parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
SystemParameters |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SystemParameters parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SystemParameters |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static SystemParameters parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
SystemParameters |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SystemParameters parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SystemParameters |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static SystemParameters parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
SystemParameters |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SystemParameters parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SystemParameters |
Type | Description |
IOException |
parseFrom(InputStream input)
public static SystemParameters parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
SystemParameters |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SystemParameters parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SystemParameters |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static SystemParameters parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
SystemParameters |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SystemParameters parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SystemParameters |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<SystemParameters> parser()
Type | Description |
Parser<SystemParameters> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public SystemParameters getDefaultInstanceForType()
Type | Description |
SystemParameters |
getParserForType()
public Parser<SystemParameters> getParserForType()
Type | Description |
Parser<SystemParameters> |
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;
Name | Description |
index | int |
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Name | Description |
index | int |
Type | Description |
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;
Type | Description |
List<? extends com.google.api.SystemParameterRuleOrBuilder> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public SystemParameters.Builder newBuilderForType()
Type | Description |
SystemParameters.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SystemParameters.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
SystemParameters.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public SystemParameters.Builder toBuilder()
Type | Description |
SystemParameters.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |