Class IosKeyRestrictions.Builder (0.15.0)

public static final class IosKeyRestrictions.Builder extends GeneratedMessageV3.Builder<IosKeyRestrictions.Builder> implements IosKeyRestrictionsOrBuilder

The iOS apps that are allowed to use the key.

Protobuf type google.api.apikeys.v2.IosKeyRestrictions

Static Methods

getDescriptor()

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

Methods

addAllAllowedBundleIds(Iterable<String> values)

public IosKeyRestrictions.Builder addAllAllowedBundleIds(Iterable<String> values)

A list of bundle IDs that are allowed when making API calls with this key.

repeated string allowed_bundle_ids = 1;

Parameter
NameDescription
valuesIterable<String>

The allowedBundleIds to add.

Returns
TypeDescription
IosKeyRestrictions.Builder

This builder for chaining.

addAllowedBundleIds(String value)

public IosKeyRestrictions.Builder addAllowedBundleIds(String value)

A list of bundle IDs that are allowed when making API calls with this key.

repeated string allowed_bundle_ids = 1;

Parameter
NameDescription
valueString

The allowedBundleIds to add.

Returns
TypeDescription
IosKeyRestrictions.Builder

This builder for chaining.

addAllowedBundleIdsBytes(ByteString value)

public IosKeyRestrictions.Builder addAllowedBundleIdsBytes(ByteString value)

A list of bundle IDs that are allowed when making API calls with this key.

repeated string allowed_bundle_ids = 1;

Parameter
NameDescription
valueByteString

The bytes of the allowedBundleIds to add.

Returns
TypeDescription
IosKeyRestrictions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IosKeyRestrictions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
IosKeyRestrictions.Builder
Overrides

build()

public IosKeyRestrictions build()
Returns
TypeDescription
IosKeyRestrictions

buildPartial()

public IosKeyRestrictions buildPartial()
Returns
TypeDescription
IosKeyRestrictions

clear()

public IosKeyRestrictions.Builder clear()
Returns
TypeDescription
IosKeyRestrictions.Builder
Overrides

clearAllowedBundleIds()

public IosKeyRestrictions.Builder clearAllowedBundleIds()

A list of bundle IDs that are allowed when making API calls with this key.

repeated string allowed_bundle_ids = 1;

Returns
TypeDescription
IosKeyRestrictions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public IosKeyRestrictions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
IosKeyRestrictions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public IosKeyRestrictions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
IosKeyRestrictions.Builder
Overrides

clone()

public IosKeyRestrictions.Builder clone()
Returns
TypeDescription
IosKeyRestrictions.Builder
Overrides

getAllowedBundleIds(int index)

public String getAllowedBundleIds(int index)

A list of bundle IDs that are allowed when making API calls with this key.

repeated string allowed_bundle_ids = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The allowedBundleIds at the given index.

getAllowedBundleIdsBytes(int index)

public ByteString getAllowedBundleIdsBytes(int index)

A list of bundle IDs that are allowed when making API calls with this key.

repeated string allowed_bundle_ids = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the allowedBundleIds at the given index.

getAllowedBundleIdsCount()

public int getAllowedBundleIdsCount()

A list of bundle IDs that are allowed when making API calls with this key.

repeated string allowed_bundle_ids = 1;

Returns
TypeDescription
int

The count of allowedBundleIds.

getAllowedBundleIdsList()

public ProtocolStringList getAllowedBundleIdsList()

A list of bundle IDs that are allowed when making API calls with this key.

repeated string allowed_bundle_ids = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the allowedBundleIds.

getDefaultInstanceForType()

public IosKeyRestrictions getDefaultInstanceForType()
Returns
TypeDescription
IosKeyRestrictions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(IosKeyRestrictions other)

public IosKeyRestrictions.Builder mergeFrom(IosKeyRestrictions other)
Parameter
NameDescription
otherIosKeyRestrictions
Returns
TypeDescription
IosKeyRestrictions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IosKeyRestrictions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IosKeyRestrictions.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public IosKeyRestrictions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
IosKeyRestrictions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IosKeyRestrictions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IosKeyRestrictions.Builder
Overrides

setAllowedBundleIds(int index, String value)

public IosKeyRestrictions.Builder setAllowedBundleIds(int index, String value)

A list of bundle IDs that are allowed when making API calls with this key.

repeated string allowed_bundle_ids = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The allowedBundleIds to set.

Returns
TypeDescription
IosKeyRestrictions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public IosKeyRestrictions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
IosKeyRestrictions.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public IosKeyRestrictions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
IosKeyRestrictions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final IosKeyRestrictions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IosKeyRestrictions.Builder
Overrides