Class BrowserKeyRestrictions (0.12.0)

public final class BrowserKeyRestrictions extends GeneratedMessageV3 implements BrowserKeyRestrictionsOrBuilder

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

Protobuf type google.api.apikeys.v2.BrowserKeyRestrictions

Static Fields

ALLOWED_REFERRERS_FIELD_NUMBER

public static final int ALLOWED_REFERRERS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BrowserKeyRestrictions getDefaultInstance()
Returns
TypeDescription
BrowserKeyRestrictions

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static BrowserKeyRestrictions.Builder newBuilder()
Returns
TypeDescription
BrowserKeyRestrictions.Builder

newBuilder(BrowserKeyRestrictions prototype)

public static BrowserKeyRestrictions.Builder newBuilder(BrowserKeyRestrictions prototype)
Parameter
NameDescription
prototypeBrowserKeyRestrictions
Returns
TypeDescription
BrowserKeyRestrictions.Builder

parseDelimitedFrom(InputStream input)

public static BrowserKeyRestrictions parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BrowserKeyRestrictions
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BrowserKeyRestrictions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BrowserKeyRestrictions
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BrowserKeyRestrictions parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BrowserKeyRestrictions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BrowserKeyRestrictions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BrowserKeyRestrictions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BrowserKeyRestrictions parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BrowserKeyRestrictions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BrowserKeyRestrictions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BrowserKeyRestrictions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BrowserKeyRestrictions parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BrowserKeyRestrictions
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BrowserKeyRestrictions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BrowserKeyRestrictions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BrowserKeyRestrictions parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BrowserKeyRestrictions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BrowserKeyRestrictions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BrowserKeyRestrictions
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BrowserKeyRestrictions parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BrowserKeyRestrictions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BrowserKeyRestrictions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BrowserKeyRestrictions
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BrowserKeyRestrictions> parser()
Returns
TypeDescription
Parser<BrowserKeyRestrictions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAllowedReferrers(int index)

public String getAllowedReferrers(int index)

A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.

repeated string allowed_referrers = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The allowedReferrers at the given index.

getAllowedReferrersBytes(int index)

public ByteString getAllowedReferrersBytes(int index)

A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.

repeated string allowed_referrers = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the allowedReferrers at the given index.

getAllowedReferrersCount()

public int getAllowedReferrersCount()

A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.

repeated string allowed_referrers = 1;

Returns
TypeDescription
int

The count of allowedReferrers.

getAllowedReferrersList()

public ProtocolStringList getAllowedReferrersList()

A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.

repeated string allowed_referrers = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the allowedReferrers.

getDefaultInstanceForType()

public BrowserKeyRestrictions getDefaultInstanceForType()
Returns
TypeDescription
BrowserKeyRestrictions

getParserForType()

public Parser<BrowserKeyRestrictions> getParserForType()
Returns
TypeDescription
Parser<BrowserKeyRestrictions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public BrowserKeyRestrictions.Builder newBuilderForType()
Returns
TypeDescription
BrowserKeyRestrictions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BrowserKeyRestrictions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BrowserKeyRestrictions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public BrowserKeyRestrictions.Builder toBuilder()
Returns
TypeDescription
BrowserKeyRestrictions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException