Class Enrollment

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

@Generated public final class Enrollment extends com.google.protobuf.GeneratedMessage implements EnrollmentOrBuilder
 An enrollment represents a subscription for messages on a particular message
 bus. It defines a matching criteria for messages on the bus and the
 subscriber endpoint where matched messages should be delivered.
 
Protobuf type google.cloud.eventarc.v1.Enrollment
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}/enrollments/{enrollment}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface EnrollmentOrBuilder
      Returns:
      The name.
    • getNameBytes

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

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

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

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

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

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

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

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

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

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

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

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

      public String getCelMatch()
       Required. A CEL expression identifying which messages this enrollment
       applies to.
       
      string cel_match = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCelMatch in interface EnrollmentOrBuilder
      Returns:
      The celMatch.
    • getCelMatchBytes

      public com.google.protobuf.ByteString getCelMatchBytes()
       Required. A CEL expression identifying which messages this enrollment
       applies to.
       
      string cel_match = 9 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCelMatchBytes in interface EnrollmentOrBuilder
      Returns:
      The bytes for celMatch.
    • getMessageBus

      public String getMessageBus()
       Required. Immutable. Resource name of the message bus identifying the
       source of the messages. It matches the form
       projects/{project}/locations/{location}/messageBuses/{messageBus}.
       
      string message_bus = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getMessageBus in interface EnrollmentOrBuilder
      Returns:
      The messageBus.
    • getMessageBusBytes

      public com.google.protobuf.ByteString getMessageBusBytes()
       Required. Immutable. Resource name of the message bus identifying the
       source of the messages. It matches the form
       projects/{project}/locations/{location}/messageBuses/{messageBus}.
       
      string message_bus = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getMessageBusBytes in interface EnrollmentOrBuilder
      Returns:
      The bytes for messageBus.
    • getDestination

      public String getDestination()
       Required. Destination is the Pipeline that the Enrollment is delivering to.
       It must point to the full resource name of a Pipeline. Format:
       "projects/{PROJECT_ID}/locations/{region}/pipelines/{PIPELINE_ID)"
       
      string destination = 11 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDestination in interface EnrollmentOrBuilder
      Returns:
      The destination.
    • getDestinationBytes

      public com.google.protobuf.ByteString getDestinationBytes()
       Required. Destination is the Pipeline that the Enrollment is delivering to.
       It must point to the full resource name of a Pipeline. Format:
       "projects/{PROJECT_ID}/locations/{region}/pipelines/{PIPELINE_ID)"
       
      string destination = 11 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDestinationBytes in interface EnrollmentOrBuilder
      Returns:
      The bytes for destination.
    • 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 Enrollment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Enrollment.Builder newBuilder()
    • newBuilder

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

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

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

      public static Enrollment getDefaultInstance()
    • parser

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

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