Class GoogleApiSource.ProjectSubscriptions

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

public static final class GoogleApiSource.ProjectSubscriptions extends com.google.protobuf.GeneratedMessage implements GoogleApiSource.ProjectSubscriptionsOrBuilder
 Config to enable subscribing to all events from a list of projects.
 
Protobuf type google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions
See Also:
  • Field Details

  • 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
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static GoogleApiSource.ProjectSubscriptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GoogleApiSource.ProjectSubscriptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GoogleApiSource.ProjectSubscriptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GoogleApiSource.ProjectSubscriptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GoogleApiSource.ProjectSubscriptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GoogleApiSource.ProjectSubscriptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GoogleApiSource.ProjectSubscriptions parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GoogleApiSource.ProjectSubscriptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GoogleApiSource.ProjectSubscriptions parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GoogleApiSource.ProjectSubscriptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GoogleApiSource.ProjectSubscriptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GoogleApiSource.ProjectSubscriptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected GoogleApiSource.ProjectSubscriptions.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GoogleApiSource.ProjectSubscriptions getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GoogleApiSource.ProjectSubscriptions> parser()
    • getParserForType

      public com.google.protobuf.Parser<GoogleApiSource.ProjectSubscriptions> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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