Package com.google.api.apikeys.v2
Interface RestrictionsOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Restrictions
,Restrictions.Builder
public interface RestrictionsOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AndroidKeyRestrictions
getAndroidKeyRestrictions()
The Android apps that are allowed to use the key.AndroidKeyRestrictionsOrBuilder
getAndroidKeyRestrictionsOrBuilder()
The Android apps that are allowed to use the key.ApiTarget
getApiTargets(int index)
A restriction for a specific service and optionally one or more specific methods.int
getApiTargetsCount()
A restriction for a specific service and optionally one or more specific methods.List<ApiTarget>
getApiTargetsList()
A restriction for a specific service and optionally one or more specific methods.ApiTargetOrBuilder
getApiTargetsOrBuilder(int index)
A restriction for a specific service and optionally one or more specific methods.List<? extends ApiTargetOrBuilder>
getApiTargetsOrBuilderList()
A restriction for a specific service and optionally one or more specific methods.BrowserKeyRestrictions
getBrowserKeyRestrictions()
The HTTP referrers (websites) that are allowed to use the key.BrowserKeyRestrictionsOrBuilder
getBrowserKeyRestrictionsOrBuilder()
The HTTP referrers (websites) that are allowed to use the key.Restrictions.ClientRestrictionsCase
getClientRestrictionsCase()
IosKeyRestrictions
getIosKeyRestrictions()
The iOS apps that are allowed to use the key.IosKeyRestrictionsOrBuilder
getIosKeyRestrictionsOrBuilder()
The iOS apps that are allowed to use the key.ServerKeyRestrictions
getServerKeyRestrictions()
The IP addresses of callers that are allowed to use the key.ServerKeyRestrictionsOrBuilder
getServerKeyRestrictionsOrBuilder()
The IP addresses of callers that are allowed to use the key.boolean
hasAndroidKeyRestrictions()
The Android apps that are allowed to use the key.boolean
hasBrowserKeyRestrictions()
The HTTP referrers (websites) that are allowed to use the key.boolean
hasIosKeyRestrictions()
The iOS apps that are allowed to use the key.boolean
hasServerKeyRestrictions()
The IP addresses of callers that are allowed to use the key.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasBrowserKeyRestrictions
boolean hasBrowserKeyRestrictions()
The HTTP referrers (websites) that are allowed to use the key.
.google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1;
- Returns:
- Whether the browserKeyRestrictions field is set.
-
getBrowserKeyRestrictions
BrowserKeyRestrictions getBrowserKeyRestrictions()
The HTTP referrers (websites) that are allowed to use the key.
.google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1;
- Returns:
- The browserKeyRestrictions.
-
getBrowserKeyRestrictionsOrBuilder
BrowserKeyRestrictionsOrBuilder getBrowserKeyRestrictionsOrBuilder()
The HTTP referrers (websites) that are allowed to use the key.
.google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1;
-
hasServerKeyRestrictions
boolean hasServerKeyRestrictions()
The IP addresses of callers that are allowed to use the key.
.google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2;
- Returns:
- Whether the serverKeyRestrictions field is set.
-
getServerKeyRestrictions
ServerKeyRestrictions getServerKeyRestrictions()
The IP addresses of callers that are allowed to use the key.
.google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2;
- Returns:
- The serverKeyRestrictions.
-
getServerKeyRestrictionsOrBuilder
ServerKeyRestrictionsOrBuilder getServerKeyRestrictionsOrBuilder()
The IP addresses of callers that are allowed to use the key.
.google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2;
-
hasAndroidKeyRestrictions
boolean hasAndroidKeyRestrictions()
The Android apps that are allowed to use the key.
.google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3;
- Returns:
- Whether the androidKeyRestrictions field is set.
-
getAndroidKeyRestrictions
AndroidKeyRestrictions getAndroidKeyRestrictions()
The Android apps that are allowed to use the key.
.google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3;
- Returns:
- The androidKeyRestrictions.
-
getAndroidKeyRestrictionsOrBuilder
AndroidKeyRestrictionsOrBuilder getAndroidKeyRestrictionsOrBuilder()
The Android apps that are allowed to use the key.
.google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3;
-
hasIosKeyRestrictions
boolean hasIosKeyRestrictions()
The iOS apps that are allowed to use the key.
.google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4;
- Returns:
- Whether the iosKeyRestrictions field is set.
-
getIosKeyRestrictions
IosKeyRestrictions getIosKeyRestrictions()
The iOS apps that are allowed to use the key.
.google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4;
- Returns:
- The iosKeyRestrictions.
-
getIosKeyRestrictionsOrBuilder
IosKeyRestrictionsOrBuilder getIosKeyRestrictionsOrBuilder()
The iOS apps that are allowed to use the key.
.google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4;
-
getApiTargetsList
List<ApiTarget> getApiTargetsList()
A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
repeated .google.api.apikeys.v2.ApiTarget api_targets = 5;
-
getApiTargets
ApiTarget getApiTargets(int index)
A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
repeated .google.api.apikeys.v2.ApiTarget api_targets = 5;
-
getApiTargetsCount
int getApiTargetsCount()
A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
repeated .google.api.apikeys.v2.ApiTarget api_targets = 5;
-
getApiTargetsOrBuilderList
List<? extends ApiTargetOrBuilder> getApiTargetsOrBuilderList()
A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
repeated .google.api.apikeys.v2.ApiTarget api_targets = 5;
-
getApiTargetsOrBuilder
ApiTargetOrBuilder getApiTargetsOrBuilder(int index)
A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed.
repeated .google.api.apikeys.v2.ApiTarget api_targets = 5;
-
getClientRestrictionsCase
Restrictions.ClientRestrictionsCase getClientRestrictionsCase()
-
-