Class GoogleApiSource.ProjectSubscriptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GoogleApiSource.ProjectSubscriptions.Builder>
com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions.Builder
All Implemented Interfaces:
GoogleApiSource.ProjectSubscriptionsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GoogleApiSource.ProjectSubscriptions

public static final class GoogleApiSource.ProjectSubscriptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<GoogleApiSource.ProjectSubscriptions.Builder> implements GoogleApiSource.ProjectSubscriptionsOrBuilder
 Config to enable subscribing to all events from a list of projects.
 
Protobuf type google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions
  • 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<GoogleApiSource.ProjectSubscriptions.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<GoogleApiSource.ProjectSubscriptions.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<GoogleApiSource.ProjectSubscriptions.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public GoogleApiSource.ProjectSubscriptions.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<GoogleApiSource.ProjectSubscriptions.Builder>
      Throws:
      IOException
    • getListList

      public com.google.protobuf.ProtocolStringList getListList()
       Required. A list of projects to receive events from.
      
       All the projects must be in the same org. The listed projects should have
       the format project/{identifier} where identifier can be either the
       project id for project number. A single list may contain both formats. At
       most 100 projects can be listed.
       
      repeated string list = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getListList in interface GoogleApiSource.ProjectSubscriptionsOrBuilder
      Returns:
      A list containing the list.
    • getListCount

      public int getListCount()
       Required. A list of projects to receive events from.
      
       All the projects must be in the same org. The listed projects should have
       the format project/{identifier} where identifier can be either the
       project id for project number. A single list may contain both formats. At
       most 100 projects can be listed.
       
      repeated string list = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getListCount in interface GoogleApiSource.ProjectSubscriptionsOrBuilder
      Returns:
      The count of list.
    • getList

      public String getList(int index)
       Required. A list of projects to receive events from.
      
       All the projects must be in the same org. The listed projects should have
       the format project/{identifier} where identifier can be either the
       project id for project number. A single list may contain both formats. At
       most 100 projects can be listed.
       
      repeated string list = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getList in interface GoogleApiSource.ProjectSubscriptionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The list at the given index.
    • getListBytes

      public com.google.protobuf.ByteString getListBytes(int index)
       Required. A list of projects to receive events from.
      
       All the projects must be in the same org. The listed projects should have
       the format project/{identifier} where identifier can be either the
       project id for project number. A single list may contain both formats. At
       most 100 projects can be listed.
       
      repeated string list = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getListBytes in interface GoogleApiSource.ProjectSubscriptionsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the list at the given index.
    • setList

      public GoogleApiSource.ProjectSubscriptions.Builder setList(int index, String value)
       Required. A list of projects to receive events from.
      
       All the projects must be in the same org. The listed projects should have
       the format project/{identifier} where identifier can be either the
       project id for project number. A single list may contain both formats. At
       most 100 projects can be listed.
       
      repeated string list = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The list to set.
      Returns:
      This builder for chaining.
    • addList

       Required. A list of projects to receive events from.
      
       All the projects must be in the same org. The listed projects should have
       the format project/{identifier} where identifier can be either the
       project id for project number. A single list may contain both formats. At
       most 100 projects can be listed.
       
      repeated string list = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The list to add.
      Returns:
      This builder for chaining.
    • addAllList

       Required. A list of projects to receive events from.
      
       All the projects must be in the same org. The listed projects should have
       the format project/{identifier} where identifier can be either the
       project id for project number. A single list may contain both formats. At
       most 100 projects can be listed.
       
      repeated string list = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The list to add.
      Returns:
      This builder for chaining.
    • clearList

       Required. A list of projects to receive events from.
      
       All the projects must be in the same org. The listed projects should have
       the format project/{identifier} where identifier can be either the
       project id for project number. A single list may contain both formats. At
       most 100 projects can be listed.
       
      repeated string list = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addListBytes

      public GoogleApiSource.ProjectSubscriptions.Builder addListBytes(com.google.protobuf.ByteString value)
       Required. A list of projects to receive events from.
      
       All the projects must be in the same org. The listed projects should have
       the format project/{identifier} where identifier can be either the
       project id for project number. A single list may contain both formats. At
       most 100 projects can be listed.
       
      repeated string list = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the list to add.
      Returns:
      This builder for chaining.