Class AndroidKeyRestrictions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AndroidKeyRestrictions.Builder>
com.google.api.apikeys.v2.AndroidKeyRestrictions.Builder
All Implemented Interfaces:
AndroidKeyRestrictionsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AndroidKeyRestrictions

public static final class AndroidKeyRestrictions.Builder extends com.google.protobuf.GeneratedMessage.Builder<AndroidKeyRestrictions.Builder> implements AndroidKeyRestrictionsOrBuilder
 The Android apps that are allowed to use the key.
 
Protobuf type google.api.apikeys.v2.AndroidKeyRestrictions
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AndroidKeyRestrictions.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AndroidKeyRestrictions.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AndroidKeyRestrictions.Builder>
    • getDefaultInstanceForType

      public AndroidKeyRestrictions getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AndroidKeyRestrictions build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AndroidKeyRestrictions buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AndroidKeyRestrictions.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AndroidKeyRestrictions.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AndroidKeyRestrictions.Builder>
    • mergeFrom

      public AndroidKeyRestrictions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AndroidKeyRestrictions.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      getAllowedApplicationsList in interface AndroidKeyRestrictionsOrBuilder
    • 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;
      Specified by:
      getAllowedApplicationsCount in interface AndroidKeyRestrictionsOrBuilder
    • getAllowedApplications

      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;
      Specified by:
      getAllowedApplications in interface AndroidKeyRestrictionsOrBuilder
    • setAllowedApplications

      public AndroidKeyRestrictions.Builder setAllowedApplications(int index, AndroidApplication value)
       A list of Android applications that are allowed to make API calls with
       this key.
       
      repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;
    • setAllowedApplications

      public AndroidKeyRestrictions.Builder setAllowedApplications(int index, AndroidApplication.Builder builderForValue)
       A list of Android applications that are allowed to make API calls with
       this key.
       
      repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;
    • addAllowedApplications

      public AndroidKeyRestrictions.Builder addAllowedApplications(AndroidApplication value)
       A list of Android applications that are allowed to make API calls with
       this key.
       
      repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;
    • addAllowedApplications

      public AndroidKeyRestrictions.Builder addAllowedApplications(int index, AndroidApplication value)
       A list of Android applications that are allowed to make API calls with
       this key.
       
      repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;
    • addAllowedApplications

      public AndroidKeyRestrictions.Builder addAllowedApplications(AndroidApplication.Builder builderForValue)
       A list of Android applications that are allowed to make API calls with
       this key.
       
      repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;
    • addAllowedApplications

      public AndroidKeyRestrictions.Builder addAllowedApplications(int index, AndroidApplication.Builder builderForValue)
       A list of Android applications that are allowed to make API calls with
       this key.
       
      repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;
    • addAllAllowedApplications

      public AndroidKeyRestrictions.Builder addAllAllowedApplications(Iterable<? extends AndroidApplication> values)
       A list of Android applications that are allowed to make API calls with
       this key.
       
      repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;
    • clearAllowedApplications

      public AndroidKeyRestrictions.Builder clearAllowedApplications()
       A list of Android applications that are allowed to make API calls with
       this key.
       
      repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;
    • removeAllowedApplications

      public AndroidKeyRestrictions.Builder removeAllowedApplications(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;
    • getAllowedApplicationsBuilder

      public AndroidApplication.Builder getAllowedApplicationsBuilder(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;
    • getAllowedApplicationsOrBuilder

      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;
      Specified by:
      getAllowedApplicationsOrBuilder in interface AndroidKeyRestrictionsOrBuilder
    • 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;
      Specified by:
      getAllowedApplicationsOrBuilderList in interface AndroidKeyRestrictionsOrBuilder
    • addAllowedApplicationsBuilder

      public AndroidApplication.Builder addAllowedApplicationsBuilder()
       A list of Android applications that are allowed to make API calls with
       this key.
       
      repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;
    • addAllowedApplicationsBuilder

      public AndroidApplication.Builder addAllowedApplicationsBuilder(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;
    • getAllowedApplicationsBuilderList

      public List<AndroidApplication.Builder> getAllowedApplicationsBuilderList()
       A list of Android applications that are allowed to make API calls with
       this key.
       
      repeated .google.api.apikeys.v2.AndroidApplication allowed_applications = 1;