Class MessageBus

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

@Generated public final class MessageBus extends com.google.protobuf.GeneratedMessage implements MessageBusOrBuilder
 MessageBus for the messages flowing through the system. The admin has
 visibility and control over the messages being published and consumed and can
 restrict publishers and subscribers to only a subset of data available in the
 system by defining authorization policies.
 
Protobuf type google.cloud.eventarc.v1.MessageBus
See Also:
  • Field Details

  • 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
    • getName

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

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Resource name of the form
       projects/{project}/locations/{location}/messageBuses/{message_bus}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface MessageBusOrBuilder
      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];
      Specified by:
      getUid in interface MessageBusOrBuilder
      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];
      Specified by:
      getUidBytes in interface MessageBusOrBuilder
      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 MessageBusOrBuilder
      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 MessageBusOrBuilder
      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 MessageBusOrBuilder
      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 MessageBusOrBuilder
      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 MessageBusOrBuilder
    • 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 MessageBusOrBuilder
      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 MessageBusOrBuilder
      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 MessageBusOrBuilder
    • getLabelsCount

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

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

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

      public Map<String,String> getLabelsMap()
       Optional. Resource labels.
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface MessageBusOrBuilder
    • 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 MessageBusOrBuilder
    • getLabelsOrThrow

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

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

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

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

      public Map<String,String> getAnnotationsMap()
       Optional. Resource annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsMap in interface MessageBusOrBuilder
    • 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 MessageBusOrBuilder
    • getAnnotationsOrThrow

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

      public String getDisplayName()
       Optional. Resource display name.
       
      string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface MessageBusOrBuilder
      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 MessageBusOrBuilder
      Returns:
      The bytes for displayName.
    • 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 MessageBusOrBuilder
      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 MessageBusOrBuilder
      Returns:
      The bytes for cryptoKeyName.
    • hasLoggingConfig

      public boolean hasLoggingConfig()
       Optional. Config to control Platform logging for the Message Bus. This log
       configuration is applied to the Message Bus itself, and all the Enrollments
       attached to it.
       
      .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasLoggingConfig in interface MessageBusOrBuilder
      Returns:
      Whether the loggingConfig field is set.
    • getLoggingConfig

      public LoggingConfig getLoggingConfig()
       Optional. Config to control Platform logging for the Message Bus. This log
       configuration is applied to the Message Bus itself, and all the Enrollments
       attached to it.
       
      .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLoggingConfig in interface MessageBusOrBuilder
      Returns:
      The loggingConfig.
    • getLoggingConfigOrBuilder

      public LoggingConfigOrBuilder getLoggingConfigOrBuilder()
       Optional. Config to control Platform logging for the Message Bus. This log
       configuration is applied to the Message Bus itself, and all the Enrollments
       attached to it.
       
      .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLoggingConfigOrBuilder in interface MessageBusOrBuilder
    • 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 MessageBus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static MessageBus.Builder newBuilder()
    • newBuilder

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

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

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

      public static MessageBus getDefaultInstance()
    • parser

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

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