Interface RestrictionsOrBuilder (0.9.0)

public interface RestrictionsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAndroidKeyRestrictions()

public abstract AndroidKeyRestrictions getAndroidKeyRestrictions()

The Android apps that are allowed to use the key.

.google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3;

Returns
TypeDescription
AndroidKeyRestrictions

The androidKeyRestrictions.

getAndroidKeyRestrictionsOrBuilder()

public abstract AndroidKeyRestrictionsOrBuilder getAndroidKeyRestrictionsOrBuilder()

The Android apps that are allowed to use the key.

.google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3;

Returns
TypeDescription
AndroidKeyRestrictionsOrBuilder

getApiTargets(int index)

public abstract 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
ApiTarget

getApiTargetsCount()

public abstract 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;

Returns
TypeDescription
int

getApiTargetsList()

public abstract 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;

Returns
TypeDescription
List<ApiTarget>

getApiTargetsOrBuilder(int index)

public abstract 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
ApiTargetOrBuilder

getApiTargetsOrBuilderList()

public abstract 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;

Returns
TypeDescription
List<? extends com.google.api.apikeys.v2.ApiTargetOrBuilder>

getBrowserKeyRestrictions()

public abstract BrowserKeyRestrictions getBrowserKeyRestrictions()

The HTTP referrers (websites) that are allowed to use the key.

.google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1;

Returns
TypeDescription
BrowserKeyRestrictions

The browserKeyRestrictions.

getBrowserKeyRestrictionsOrBuilder()

public abstract BrowserKeyRestrictionsOrBuilder getBrowserKeyRestrictionsOrBuilder()

The HTTP referrers (websites) that are allowed to use the key.

.google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1;

Returns
TypeDescription
BrowserKeyRestrictionsOrBuilder

getClientRestrictionsCase()

public abstract Restrictions.ClientRestrictionsCase getClientRestrictionsCase()
Returns
TypeDescription
Restrictions.ClientRestrictionsCase

getIosKeyRestrictions()

public abstract IosKeyRestrictions getIosKeyRestrictions()

The iOS apps that are allowed to use the key.

.google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4;

Returns
TypeDescription
IosKeyRestrictions

The iosKeyRestrictions.

getIosKeyRestrictionsOrBuilder()

public abstract IosKeyRestrictionsOrBuilder getIosKeyRestrictionsOrBuilder()

The iOS apps that are allowed to use the key.

.google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4;

Returns
TypeDescription
IosKeyRestrictionsOrBuilder

getServerKeyRestrictions()

public abstract ServerKeyRestrictions getServerKeyRestrictions()

The IP addresses of callers that are allowed to use the key.

.google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2;

Returns
TypeDescription
ServerKeyRestrictions

The serverKeyRestrictions.

getServerKeyRestrictionsOrBuilder()

public abstract ServerKeyRestrictionsOrBuilder getServerKeyRestrictionsOrBuilder()

The IP addresses of callers that are allowed to use the key.

.google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2;

Returns
TypeDescription
ServerKeyRestrictionsOrBuilder

hasAndroidKeyRestrictions()

public abstract boolean hasAndroidKeyRestrictions()

The Android apps that are allowed to use the key.

.google.api.apikeys.v2.AndroidKeyRestrictions android_key_restrictions = 3;

Returns
TypeDescription
boolean

Whether the androidKeyRestrictions field is set.

hasBrowserKeyRestrictions()

public abstract boolean hasBrowserKeyRestrictions()

The HTTP referrers (websites) that are allowed to use the key.

.google.api.apikeys.v2.BrowserKeyRestrictions browser_key_restrictions = 1;

Returns
TypeDescription
boolean

Whether the browserKeyRestrictions field is set.

hasIosKeyRestrictions()

public abstract boolean hasIosKeyRestrictions()

The iOS apps that are allowed to use the key.

.google.api.apikeys.v2.IosKeyRestrictions ios_key_restrictions = 4;

Returns
TypeDescription
boolean

Whether the iosKeyRestrictions field is set.

hasServerKeyRestrictions()

public abstract boolean hasServerKeyRestrictions()

The IP addresses of callers that are allowed to use the key.

.google.api.apikeys.v2.ServerKeyRestrictions server_key_restrictions = 2;

Returns
TypeDescription
boolean

Whether the serverKeyRestrictions field is set.