Class GoogleApiSource

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

@Generated public final class GoogleApiSource extends com.google.protobuf.GeneratedMessage implements GoogleApiSourceOrBuilder
 A GoogleApiSource represents a subscription of 1P events from a MessageBus.
 
Protobuf type google.cloud.eventarc.v1.GoogleApiSource
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • UID_FIELD_NUMBER

      public static final int UID_FIELD_NUMBER
      See Also:
    • ETAG_FIELD_NUMBER

      public static final int ETAG_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • ANNOTATIONS_FIELD_NUMBER

      public static final int ANNOTATIONS_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • DESTINATION_FIELD_NUMBER

      public static final int DESTINATION_FIELD_NUMBER
      See Also:
    • CRYPTO_KEY_NAME_FIELD_NUMBER

      public static final int CRYPTO_KEY_NAME_FIELD_NUMBER
      See Also:
    • LOGGING_CONFIG_FIELD_NUMBER

      public static final int LOGGING_CONFIG_FIELD_NUMBER
      See Also:
    • ORGANIZATION_SUBSCRIPTION_FIELD_NUMBER

      public static final int ORGANIZATION_SUBSCRIPTION_FIELD_NUMBER
      See Also:
    • PROJECT_SUBSCRIPTIONS_FIELD_NUMBER

      public static final int PROJECT_SUBSCRIPTIONS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getWideScopeSubscriptionCase

      public GoogleApiSource.WideScopeSubscriptionCase getWideScopeSubscriptionCase()
      Specified by:
      getWideScopeSubscriptionCase in interface GoogleApiSourceOrBuilder
    • getName

      public String getName()
       Identifier. Resource name of the form
       projects/{project}/locations/{location}/googleApiSources/{google_api_source}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface GoogleApiSourceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Resource name of the form
       projects/{project}/locations/{location}/googleApiSources/{google_api_source}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface GoogleApiSourceOrBuilder
      Returns:
      The bytes for name.
    • getUid

      public String getUid()
       Output only. Server assigned unique identifier for the channel. The value
       is a UUID4 string and guaranteed to remain unchanged until the resource is
       deleted.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface GoogleApiSourceOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. Server assigned unique identifier for the channel. The value
       is a UUID4 string and guaranteed to remain unchanged until the resource is
       deleted.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface GoogleApiSourceOrBuilder
      Returns:
      The bytes for uid.
    • getEtag

      public String getEtag()
       Output only. This checksum is computed by the server based on the value of
       other fields, and might be sent only on update and delete requests to
       ensure that the client has an up-to-date value before proceeding.
       
      string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtag in interface GoogleApiSourceOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Output only. This checksum is computed by the server based on the value of
       other fields, and might be sent only on update and delete requests to
       ensure that the client has an up-to-date value before proceeding.
       
      string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtagBytes in interface GoogleApiSourceOrBuilder
      Returns:
      The bytes for etag.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface GoogleApiSourceOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface GoogleApiSourceOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface GoogleApiSourceOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface GoogleApiSourceOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface GoogleApiSourceOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface GoogleApiSourceOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: GoogleApiSourceOrBuilder
       Optional. Resource labels.
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface GoogleApiSourceOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Resource labels.
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface GoogleApiSourceOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface GoogleApiSourceOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Resource labels.
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface GoogleApiSourceOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Resource labels.
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface GoogleApiSourceOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Resource labels.
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface GoogleApiSourceOrBuilder
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: GoogleApiSourceOrBuilder
       Optional. Resource annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsCount in interface GoogleApiSourceOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Optional. Resource annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAnnotations in interface GoogleApiSourceOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface GoogleApiSourceOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Optional. Resource annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsMap in interface GoogleApiSourceOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Optional. Resource annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrDefault in interface GoogleApiSourceOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Optional. Resource annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrThrow in interface GoogleApiSourceOrBuilder
    • getDisplayName

      public String getDisplayName()
       Optional. Resource display name.
       
      string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface GoogleApiSourceOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. Resource display name.
       
      string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface GoogleApiSourceOrBuilder
      Returns:
      The bytes for displayName.
    • getDestination

      public String getDestination()
       Required. Destination is the message bus that the GoogleApiSource is
       delivering to. It must be point to the full resource name of a MessageBus.
       Format:
       "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
       
      string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDestination in interface GoogleApiSourceOrBuilder
      Returns:
      The destination.
    • getDestinationBytes

      public com.google.protobuf.ByteString getDestinationBytes()
       Required. Destination is the message bus that the GoogleApiSource is
       delivering to. It must be point to the full resource name of a MessageBus.
       Format:
       "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
       
      string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDestinationBytes in interface GoogleApiSourceOrBuilder
      Returns:
      The bytes for destination.
    • getCryptoKeyName

      public String getCryptoKeyName()
       Optional. Resource name of a KMS crypto key (managed by the user) used to
       encrypt/decrypt their event data.
      
       It must match the pattern
       `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
       
      string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCryptoKeyName in interface GoogleApiSourceOrBuilder
      Returns:
      The cryptoKeyName.
    • getCryptoKeyNameBytes

      public com.google.protobuf.ByteString getCryptoKeyNameBytes()
       Optional. Resource name of a KMS crypto key (managed by the user) used to
       encrypt/decrypt their event data.
      
       It must match the pattern
       `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
       
      string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCryptoKeyNameBytes in interface GoogleApiSourceOrBuilder
      Returns:
      The bytes for cryptoKeyName.
    • hasLoggingConfig

      public boolean hasLoggingConfig()
       Optional. Config to control Platform logging for the GoogleApiSource.
       
      .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasLoggingConfig in interface GoogleApiSourceOrBuilder
      Returns:
      Whether the loggingConfig field is set.
    • getLoggingConfig

      public LoggingConfig getLoggingConfig()
       Optional. Config to control Platform logging for the GoogleApiSource.
       
      .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLoggingConfig in interface GoogleApiSourceOrBuilder
      Returns:
      The loggingConfig.
    • getLoggingConfigOrBuilder

      public LoggingConfigOrBuilder getLoggingConfigOrBuilder()
       Optional. Config to control Platform logging for the GoogleApiSource.
       
      .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLoggingConfigOrBuilder in interface GoogleApiSourceOrBuilder
    • hasOrganizationSubscription

      public boolean hasOrganizationSubscription()
       Optional. Config to enable subscribing to events from all projects in the
       GoogleApiSource's org.
       
      .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasOrganizationSubscription in interface GoogleApiSourceOrBuilder
      Returns:
      Whether the organizationSubscription field is set.
    • getOrganizationSubscription

      public GoogleApiSource.OrganizationSubscription getOrganizationSubscription()
       Optional. Config to enable subscribing to events from all projects in the
       GoogleApiSource's org.
       
      .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOrganizationSubscription in interface GoogleApiSourceOrBuilder
      Returns:
      The organizationSubscription.
    • getOrganizationSubscriptionOrBuilder

      public GoogleApiSource.OrganizationSubscriptionOrBuilder getOrganizationSubscriptionOrBuilder()
       Optional. Config to enable subscribing to events from all projects in the
       GoogleApiSource's org.
       
      .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOrganizationSubscriptionOrBuilder in interface GoogleApiSourceOrBuilder
    • hasProjectSubscriptions

      public boolean hasProjectSubscriptions()
       Optional. Config to enable subscribing to all events from a list of
       projects.
      
       All the projects must be in the same org as the GoogleApiSource.
       
      .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasProjectSubscriptions in interface GoogleApiSourceOrBuilder
      Returns:
      Whether the projectSubscriptions field is set.
    • getProjectSubscriptions

      public GoogleApiSource.ProjectSubscriptions getProjectSubscriptions()
       Optional. Config to enable subscribing to all events from a list of
       projects.
      
       All the projects must be in the same org as the GoogleApiSource.
       
      .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProjectSubscriptions in interface GoogleApiSourceOrBuilder
      Returns:
      The projectSubscriptions.
    • getProjectSubscriptionsOrBuilder

      public GoogleApiSource.ProjectSubscriptionsOrBuilder getProjectSubscriptionsOrBuilder()
       Optional. Config to enable subscribing to all events from a list of
       projects.
      
       All the projects must be in the same org as the GoogleApiSource.
       
      .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProjectSubscriptionsOrBuilder in interface GoogleApiSourceOrBuilder
    • 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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static GoogleApiSource 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

      public GoogleApiSource.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static GoogleApiSource.Builder newBuilder()
    • newBuilder

      public static GoogleApiSource.Builder newBuilder(GoogleApiSource prototype)
    • toBuilder

      public GoogleApiSource.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static GoogleApiSource getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<GoogleApiSource> 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 getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder