Class AndroidKeyRestrictions (0.25.0)

public final class AndroidKeyRestrictions extends GeneratedMessageV3 implements AndroidKeyRestrictionsOrBuilder

The Android apps that are allowed to use the key.

Protobuf type google.api.apikeys.v2.AndroidKeyRestrictions

Static Fields

ALLOWED_APPLICATIONS_FIELD_NUMBER

public static final int ALLOWED_APPLICATIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AndroidKeyRestrictions getDefaultInstance()
Returns
TypeDescription
AndroidKeyRestrictions

getDescriptor()

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

newBuilder()

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

newBuilder(AndroidKeyRestrictions prototype)

public static AndroidKeyRestrictions.Builder newBuilder(AndroidKeyRestrictions prototype)
Parameter
NameDescription
prototypeAndroidKeyRestrictions
Returns
TypeDescription
AndroidKeyRestrictions.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAllowedApplications(int index)

public AndroidApplication getAllowedApplications(int index)

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
AndroidApplication

getAllowedApplicationsCount()

public int getAllowedApplicationsCount()

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Returns
TypeDescription
int

getAllowedApplicationsList()

public List<AndroidApplication> getAllowedApplicationsList()

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Returns
TypeDescription
List<AndroidApplication>

getAllowedApplicationsOrBuilder(int index)

public AndroidApplicationOrBuilder getAllowedApplicationsOrBuilder(int index)

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
AndroidApplicationOrBuilder

getAllowedApplicationsOrBuilderList()

public List<? extends AndroidApplicationOrBuilder> getAllowedApplicationsOrBuilderList()

A list of Android applications that are allowed to make API calls with this key.

repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;

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

getDefaultInstanceForType()

public AndroidKeyRestrictions getDefaultInstanceForType()
Returns
TypeDescription
AndroidKeyRestrictions

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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 AndroidKeyRestrictions.Builder newBuilderForType()
Returns
TypeDescription
AndroidKeyRestrictions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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