Package com.google.api.apikeys.v2
Class Restrictions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Restrictions.Builder>
com.google.api.apikeys.v2.Restrictions.Builder
- All Implemented Interfaces:
RestrictionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Restrictions
public static final class Restrictions.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Restrictions.Builder>
implements RestrictionsOrBuilder
Describes the restrictions on the key.Protobuf type
google.api.apikeys.v2.Restrictions-
Method Summary
Modifier and TypeMethodDescriptionaddAllApiTargets(Iterable<? extends ApiTarget> values) A restriction for a specific service and optionally one or more specific methods.addApiTargets(int index, ApiTarget value) A restriction for a specific service and optionally one or more specific methods.addApiTargets(int index, ApiTarget.Builder builderForValue) A restriction for a specific service and optionally one or more specific methods.addApiTargets(ApiTarget value) A restriction for a specific service and optionally one or more specific methods.addApiTargets(ApiTarget.Builder builderForValue) A restriction for a specific service and optionally one or more specific methods.A restriction for a specific service and optionally one or more specific methods.addApiTargetsBuilder(int index) A restriction for a specific service and optionally one or more specific methods.build()clear()The Android apps that are allowed to use the key.A restriction for a specific service and optionally one or more specific methods.The HTTP referrers (websites) that are allowed to use the key.The iOS apps that are allowed to use the key.The IP addresses of callers that are allowed to use the key.The Android apps that are allowed to use the key.The Android apps that are allowed to use the key.The Android apps that are allowed to use the key.getApiTargets(int index) A restriction for a specific service and optionally one or more specific methods.getApiTargetsBuilder(int index) A restriction for a specific service and optionally one or more specific methods.A restriction for a specific service and optionally one or more specific methods.intA restriction for a specific service and optionally one or more specific methods.A restriction for a specific service and optionally one or more specific methods.getApiTargetsOrBuilder(int index) A restriction for a specific service and optionally one or more specific methods.List<? extends ApiTargetOrBuilder>A restriction for a specific service and optionally one or more specific methods.The HTTP referrers (websites) that are allowed to use the key.The HTTP referrers (websites) that are allowed to use the key.The HTTP referrers (websites) that are allowed to use the key.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe iOS apps that are allowed to use the key.The iOS apps that are allowed to use the key.The iOS apps that are allowed to use the key.The IP addresses of callers that are allowed to use the key.The IP addresses of callers that are allowed to use the key.The IP addresses of callers that are allowed to use the key.booleanThe Android apps that are allowed to use the key.booleanThe HTTP referrers (websites) that are allowed to use the key.booleanThe iOS apps that are allowed to use the key.booleanThe IP addresses of callers that are allowed to use the key.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe Android apps that are allowed to use the key.The HTTP referrers (websites) that are allowed to use the key.mergeFrom(Restrictions other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The iOS apps that are allowed to use the key.The IP addresses of callers that are allowed to use the key.removeApiTargets(int index) A restriction for a specific service and optionally one or more specific methods.The Android apps that are allowed to use the key.setAndroidKeyRestrictions(AndroidKeyRestrictions.Builder builderForValue) The Android apps that are allowed to use the key.setApiTargets(int index, ApiTarget value) A restriction for a specific service and optionally one or more specific methods.setApiTargets(int index, ApiTarget.Builder builderForValue) A restriction for a specific service and optionally one or more specific methods.The HTTP referrers (websites) that are allowed to use the key.setBrowserKeyRestrictions(BrowserKeyRestrictions.Builder builderForValue) The HTTP referrers (websites) that are allowed to use the key.The iOS apps that are allowed to use the key.setIosKeyRestrictions(IosKeyRestrictions.Builder builderForValue) The iOS apps that are allowed to use the key.The IP addresses of callers that are allowed to use the key.setServerKeyRestrictions(ServerKeyRestrictions.Builder builderForValue) The IP addresses of callers that are allowed to use the key.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Restrictions.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Restrictions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Restrictions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Restrictions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Restrictions.Builder>
-
mergeFrom
public Restrictions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Restrictions.Builder>- Throws:
IOException
-
getClientRestrictionsCase
- Specified by:
getClientRestrictionsCasein interfaceRestrictionsOrBuilder
-
clearClientRestrictions
-
hasBrowserKeyRestrictions
public boolean hasBrowserKeyRestrictions()The HTTP referrers (websites) that are allowed to use the key.
.google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1;- Specified by:
hasBrowserKeyRestrictionsin interfaceRestrictionsOrBuilder- Returns:
- Whether the browserKeyRestrictions field is set.
-
getBrowserKeyRestrictions
The HTTP referrers (websites) that are allowed to use the key.
.google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1;- Specified by:
getBrowserKeyRestrictionsin interfaceRestrictionsOrBuilder- Returns:
- The browserKeyRestrictions.
-
setBrowserKeyRestrictions
The HTTP referrers (websites) that are allowed to use the key.
.google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1; -
setBrowserKeyRestrictions
public Restrictions.Builder setBrowserKeyRestrictions(BrowserKeyRestrictions.Builder builderForValue) The HTTP referrers (websites) that are allowed to use the key.
.google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1; -
mergeBrowserKeyRestrictions
The HTTP referrers (websites) that are allowed to use the key.
.google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1; -
clearBrowserKeyRestrictions
The HTTP referrers (websites) that are allowed to use the key.
.google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1; -
getBrowserKeyRestrictionsBuilder
The HTTP referrers (websites) that are allowed to use the key.
.google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1; -
getBrowserKeyRestrictionsOrBuilder
The HTTP referrers (websites) that are allowed to use the key.
.google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1;- Specified by:
getBrowserKeyRestrictionsOrBuilderin interfaceRestrictionsOrBuilder
-
hasServerKeyRestrictions
public boolean hasServerKeyRestrictions()The IP addresses of callers that are allowed to use the key.
.google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2;- Specified by:
hasServerKeyRestrictionsin interfaceRestrictionsOrBuilder- Returns:
- Whether the serverKeyRestrictions field is set.
-
getServerKeyRestrictions
The IP addresses of callers that are allowed to use the key.
.google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2;- Specified by:
getServerKeyRestrictionsin interfaceRestrictionsOrBuilder- Returns:
- The serverKeyRestrictions.
-
setServerKeyRestrictions
The IP addresses of callers that are allowed to use the key.
.google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2; -
setServerKeyRestrictions
The IP addresses of callers that are allowed to use the key.
.google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2; -
mergeServerKeyRestrictions
The IP addresses of callers that are allowed to use the key.
.google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2; -
clearServerKeyRestrictions
The IP addresses of callers that are allowed to use the key.
.google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2; -
getServerKeyRestrictionsBuilder
The IP addresses of callers that are allowed to use the key.
.google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2; -
getServerKeyRestrictionsOrBuilder
The IP addresses of callers that are allowed to use the key.
.google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2;- Specified by:
getServerKeyRestrictionsOrBuilderin interfaceRestrictionsOrBuilder
-
hasAndroidKeyRestrictions
public boolean hasAndroidKeyRestrictions()The Android apps that are allowed to use the key.
.google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3;- Specified by:
hasAndroidKeyRestrictionsin interfaceRestrictionsOrBuilder- Returns:
- Whether the androidKeyRestrictions field is set.
-
getAndroidKeyRestrictions
The Android apps that are allowed to use the key.
.google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3;- Specified by:
getAndroidKeyRestrictionsin interfaceRestrictionsOrBuilder- Returns:
- The androidKeyRestrictions.
-
setAndroidKeyRestrictions
The Android apps that are allowed to use the key.
.google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3; -
setAndroidKeyRestrictions
public Restrictions.Builder setAndroidKeyRestrictions(AndroidKeyRestrictions.Builder builderForValue) The Android apps that are allowed to use the key.
.google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3; -
mergeAndroidKeyRestrictions
The Android apps that are allowed to use the key.
.google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3; -
clearAndroidKeyRestrictions
The Android apps that are allowed to use the key.
.google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3; -
getAndroidKeyRestrictionsBuilder
The Android apps that are allowed to use the key.
.google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3; -
getAndroidKeyRestrictionsOrBuilder
The Android apps that are allowed to use the key.
.google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3;- Specified by:
getAndroidKeyRestrictionsOrBuilderin interfaceRestrictionsOrBuilder
-
hasIosKeyRestrictions
public boolean hasIosKeyRestrictions()The iOS apps that are allowed to use the key.
.google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4;- Specified by:
hasIosKeyRestrictionsin interfaceRestrictionsOrBuilder- Returns:
- Whether the iosKeyRestrictions field is set.
-
getIosKeyRestrictions
The iOS apps that are allowed to use the key.
.google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4;- Specified by:
getIosKeyRestrictionsin interfaceRestrictionsOrBuilder- Returns:
- The iosKeyRestrictions.
-
setIosKeyRestrictions
The iOS apps that are allowed to use the key.
.google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4; -
setIosKeyRestrictions
The iOS apps that are allowed to use the key.
.google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4; -
mergeIosKeyRestrictions
The iOS apps that are allowed to use the key.
.google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4; -
clearIosKeyRestrictions
The iOS apps that are allowed to use the key.
.google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4; -
getIosKeyRestrictionsBuilder
The iOS apps that are allowed to use the key.
.google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4; -
getIosKeyRestrictionsOrBuilder
The iOS apps that are allowed to use the key.
.google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4;- Specified by:
getIosKeyRestrictionsOrBuilderin interfaceRestrictionsOrBuilder
-
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;- Specified by:
getApiTargetsListin interfaceRestrictionsOrBuilder
-
getApiTargetsCount
public 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;- Specified by:
getApiTargetsCountin interfaceRestrictionsOrBuilder
-
getApiTargets
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;- Specified by:
getApiTargetsin interfaceRestrictionsOrBuilder
-
setApiTargets
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; -
setApiTargets
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; -
addApiTargets
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; -
addApiTargets
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; -
addApiTargets
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; -
addApiTargets
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; -
addAllApiTargets
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; -
clearApiTargets
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; -
removeApiTargets
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; -
getApiTargetsBuilder
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
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;- Specified by:
getApiTargetsOrBuilderin interfaceRestrictionsOrBuilder
-
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;- Specified by:
getApiTargetsOrBuilderListin interfaceRestrictionsOrBuilder
-
addApiTargetsBuilder
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; -
addApiTargetsBuilder
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; -
getApiTargetsBuilderList
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;
-