Interface RestrictionsOrBuilder (0.40.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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
BrowserKeyRestrictionsOrBuilder

getClientRestrictionsCase()

public abstract Restrictions.ClientRestrictionsCase getClientRestrictionsCase()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the serverKeyRestrictions field is set.