Class ApiCredentials.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ApiCredentials.Builder>
com.buildless.authz.ApiCredentials.Builder
All Implemented Interfaces:
ApiCredentialsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ApiCredentials

public static final class ApiCredentials.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ApiCredentials.Builder> implements ApiCredentialsOrBuilder
 ## API Credentials

 Specifies a set of API credentials for a given tenant, including primary API keys and "publishable" telemetry API
 keys, which are meant for write-only operations.
 
Protobuf type buildless.authz.ApiCredentials
  • Method Details

    • getDescriptor

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

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

      public ApiCredentials.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.GeneratedMessageV3.Builder<ApiCredentials.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.GeneratedMessageV3.Builder<ApiCredentials.Builder>
    • getDefaultInstanceForType

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

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

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

      public ApiCredentials.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ApiCredentials.Builder>
    • setField

      public ApiCredentials.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ApiCredentials.Builder>
    • clearField

      public ApiCredentials.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ApiCredentials.Builder>
    • clearOneof

      public ApiCredentials.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ApiCredentials.Builder>
    • setRepeatedField

      public ApiCredentials.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ApiCredentials.Builder>
    • addRepeatedField

      public ApiCredentials.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ApiCredentials.Builder>
    • mergeFrom

      public ApiCredentials.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<ApiCredentials.Builder>
    • mergeFrom

      public ApiCredentials.Builder mergeFrom(ApiCredentials other)
    • isInitialized

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

      public ApiCredentials.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<ApiCredentials.Builder>
      Throws:
      IOException
    • getPrimaryList

      public List<ApiKeyInfo> getPrimaryList()
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryList in interface ApiCredentialsOrBuilder
    • getPrimaryCount

      public int getPrimaryCount()
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryCount in interface ApiCredentialsOrBuilder
    • getPrimary

      public ApiKeyInfo getPrimary(int index)
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimary in interface ApiCredentialsOrBuilder
    • setPrimary

      public ApiCredentials.Builder setPrimary(int index, ApiKeyInfo value)
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
    • setPrimary

      public ApiCredentials.Builder setPrimary(int index, ApiKeyInfo.Builder builderForValue)
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addPrimary

      public ApiCredentials.Builder addPrimary(ApiKeyInfo value)
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addPrimary

      public ApiCredentials.Builder addPrimary(int index, ApiKeyInfo value)
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addPrimary

      public ApiCredentials.Builder addPrimary(ApiKeyInfo.Builder builderForValue)
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addPrimary

      public ApiCredentials.Builder addPrimary(int index, ApiKeyInfo.Builder builderForValue)
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllPrimary

      public ApiCredentials.Builder addAllPrimary(Iterable<? extends ApiKeyInfo> values)
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
    • clearPrimary

      public ApiCredentials.Builder clearPrimary()
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
    • removePrimary

      public ApiCredentials.Builder removePrimary(int index)
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getPrimaryBuilder

      public ApiKeyInfo.Builder getPrimaryBuilder(int index)
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getPrimaryOrBuilder

      public ApiKeyInfoOrBuilder getPrimaryOrBuilder(int index)
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryOrBuilder in interface ApiCredentialsOrBuilder
    • getPrimaryOrBuilderList

      public List<? extends ApiKeyInfoOrBuilder> getPrimaryOrBuilderList()
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPrimaryOrBuilderList in interface ApiCredentialsOrBuilder
    • addPrimaryBuilder

      public ApiKeyInfo.Builder addPrimaryBuilder()
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addPrimaryBuilder

      public ApiKeyInfo.Builder addPrimaryBuilder(int index)
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getPrimaryBuilderList

      public List<ApiKeyInfo.Builder> getPrimaryBuilderList()
       Primary API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo primary = 1 [json_name = "primary", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getEventsList

      public List<ApiKeyInfo> getEventsList()
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEventsList in interface ApiCredentialsOrBuilder
    • getEventsCount

      public int getEventsCount()
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEventsCount in interface ApiCredentialsOrBuilder
    • getEvents

      public ApiKeyInfo getEvents(int index)
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEvents in interface ApiCredentialsOrBuilder
    • setEvents

      public ApiCredentials.Builder setEvents(int index, ApiKeyInfo value)
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
    • setEvents

      public ApiCredentials.Builder setEvents(int index, ApiKeyInfo.Builder builderForValue)
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addEvents

      public ApiCredentials.Builder addEvents(ApiKeyInfo value)
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addEvents

      public ApiCredentials.Builder addEvents(int index, ApiKeyInfo value)
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addEvents

      public ApiCredentials.Builder addEvents(ApiKeyInfo.Builder builderForValue)
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addEvents

      public ApiCredentials.Builder addEvents(int index, ApiKeyInfo.Builder builderForValue)
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllEvents

      public ApiCredentials.Builder addAllEvents(Iterable<? extends ApiKeyInfo> values)
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
    • clearEvents

      public ApiCredentials.Builder clearEvents()
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
    • removeEvents

      public ApiCredentials.Builder removeEvents(int index)
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getEventsBuilder

      public ApiKeyInfo.Builder getEventsBuilder(int index)
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getEventsOrBuilder

      public ApiKeyInfoOrBuilder getEventsOrBuilder(int index)
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEventsOrBuilder in interface ApiCredentialsOrBuilder
    • getEventsOrBuilderList

      public List<? extends ApiKeyInfoOrBuilder> getEventsOrBuilderList()
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEventsOrBuilderList in interface ApiCredentialsOrBuilder
    • addEventsBuilder

      public ApiKeyInfo.Builder addEventsBuilder()
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
    • addEventsBuilder

      public ApiKeyInfo.Builder addEventsBuilder(int index)
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getEventsBuilderList

      public List<ApiKeyInfo.Builder> getEventsBuilderList()
       "Publishable" (telemetry) API keys for the current tenant.
       
      repeated .buildless.authz.ApiKeyInfo events = 2 [json_name = "events", (.google.api.field_behavior) = OUTPUT_ONLY];
    • setUnknownFields

      public final ApiCredentials.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ApiCredentials.Builder>
    • mergeUnknownFields

      public final ApiCredentials.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ApiCredentials.Builder>