Class EventType.Builder

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

public static final class EventType.Builder extends com.google.protobuf.GeneratedMessage.Builder<EventType.Builder> implements EventTypeOrBuilder
 A representation of the event type resource.
 
Protobuf type google.cloud.eventarc.v1.EventType
  • 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<EventType.Builder>
    • clear

      public EventType.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<EventType.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<EventType.Builder>
    • getDefaultInstanceForType

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

      public EventType build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public EventType.Builder mergeFrom(EventType other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<EventType.Builder>
    • mergeFrom

      public EventType.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<EventType.Builder>
      Throws:
      IOException
    • getType

      public String getType()
       Output only. The full name of the event type (for example,
       "google.cloud.storage.object.v1.finalized"). In the form of
       {provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be
       versioned and event schemas are guaranteed to remain backward compatible
       within one version. Note that event type versions and API versions do not
       need to match.
       
      string type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getType in interface EventTypeOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Output only. The full name of the event type (for example,
       "google.cloud.storage.object.v1.finalized"). In the form of
       {provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be
       versioned and event schemas are guaranteed to remain backward compatible
       within one version. Note that event type versions and API versions do not
       need to match.
       
      string type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTypeBytes in interface EventTypeOrBuilder
      Returns:
      The bytes for type.
    • setType

      public EventType.Builder setType(String value)
       Output only. The full name of the event type (for example,
       "google.cloud.storage.object.v1.finalized"). In the form of
       {provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be
       versioned and event schemas are guaranteed to remain backward compatible
       within one version. Note that event type versions and API versions do not
       need to match.
       
      string type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public EventType.Builder clearType()
       Output only. The full name of the event type (for example,
       "google.cloud.storage.object.v1.finalized"). In the form of
       {provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be
       versioned and event schemas are guaranteed to remain backward compatible
       within one version. Note that event type versions and API versions do not
       need to match.
       
      string type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setTypeBytes

      public EventType.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Output only. The full name of the event type (for example,
       "google.cloud.storage.object.v1.finalized"). In the form of
       {provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be
       versioned and event schemas are guaranteed to remain backward compatible
       within one version. Note that event type versions and API versions do not
       need to match.
       
      string type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Output only. Human friendly description of what the event type is about.
       For example "Bucket created in Cloud Storage".
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescription in interface EventTypeOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Output only. Human friendly description of what the event type is about.
       For example "Bucket created in Cloud Storage".
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescriptionBytes in interface EventTypeOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public EventType.Builder setDescription(String value)
       Output only. Human friendly description of what the event type is about.
       For example "Bucket created in Cloud Storage".
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public EventType.Builder clearDescription()
       Output only. Human friendly description of what the event type is about.
       For example "Bucket created in Cloud Storage".
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public EventType.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Output only. Human friendly description of what the event type is about.
       For example "Bucket created in Cloud Storage".
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getFilteringAttributesList

      public List<FilteringAttribute> getFilteringAttributesList()
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFilteringAttributesList in interface EventTypeOrBuilder
    • getFilteringAttributesCount

      public int getFilteringAttributesCount()
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFilteringAttributesCount in interface EventTypeOrBuilder
    • getFilteringAttributes

      public FilteringAttribute getFilteringAttributes(int index)
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFilteringAttributes in interface EventTypeOrBuilder
    • setFilteringAttributes

      public EventType.Builder setFilteringAttributes(int index, FilteringAttribute value)
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setFilteringAttributes

      public EventType.Builder setFilteringAttributes(int index, FilteringAttribute.Builder builderForValue)
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addFilteringAttributes

      public EventType.Builder addFilteringAttributes(FilteringAttribute value)
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addFilteringAttributes

      public EventType.Builder addFilteringAttributes(int index, FilteringAttribute value)
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addFilteringAttributes

      public EventType.Builder addFilteringAttributes(FilteringAttribute.Builder builderForValue)
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addFilteringAttributes

      public EventType.Builder addFilteringAttributes(int index, FilteringAttribute.Builder builderForValue)
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllFilteringAttributes

      public EventType.Builder addAllFilteringAttributes(Iterable<? extends FilteringAttribute> values)
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearFilteringAttributes

      public EventType.Builder clearFilteringAttributes()
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeFilteringAttributes

      public EventType.Builder removeFilteringAttributes(int index)
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getFilteringAttributesBuilder

      public FilteringAttribute.Builder getFilteringAttributesBuilder(int index)
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getFilteringAttributesOrBuilder

      public FilteringAttributeOrBuilder getFilteringAttributesOrBuilder(int index)
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFilteringAttributesOrBuilder in interface EventTypeOrBuilder
    • getFilteringAttributesOrBuilderList

      public List<? extends FilteringAttributeOrBuilder> getFilteringAttributesOrBuilderList()
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFilteringAttributesOrBuilderList in interface EventTypeOrBuilder
    • addFilteringAttributesBuilder

      public FilteringAttribute.Builder addFilteringAttributesBuilder()
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addFilteringAttributesBuilder

      public FilteringAttribute.Builder addFilteringAttributesBuilder(int index)
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getFilteringAttributesBuilderList

      public List<FilteringAttribute.Builder> getFilteringAttributesBuilderList()
       Output only. Filtering attributes for the event type.
       
      repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getEventSchemaUri

      public String getEventSchemaUri()
       Output only. URI for the event schema.
       For example
       "https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto"
       
      string event_schema_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEventSchemaUri in interface EventTypeOrBuilder
      Returns:
      The eventSchemaUri.
    • getEventSchemaUriBytes

      public com.google.protobuf.ByteString getEventSchemaUriBytes()
       Output only. URI for the event schema.
       For example
       "https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto"
       
      string event_schema_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEventSchemaUriBytes in interface EventTypeOrBuilder
      Returns:
      The bytes for eventSchemaUri.
    • setEventSchemaUri

      public EventType.Builder setEventSchemaUri(String value)
       Output only. URI for the event schema.
       For example
       "https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto"
       
      string event_schema_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The eventSchemaUri to set.
      Returns:
      This builder for chaining.
    • clearEventSchemaUri

      public EventType.Builder clearEventSchemaUri()
       Output only. URI for the event schema.
       For example
       "https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto"
       
      string event_schema_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setEventSchemaUriBytes

      public EventType.Builder setEventSchemaUriBytes(com.google.protobuf.ByteString value)
       Output only. URI for the event schema.
       For example
       "https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto"
       
      string event_schema_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for eventSchemaUri to set.
      Returns:
      This builder for chaining.