Class FilteringAttribute.Builder

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

public static final class FilteringAttribute.Builder extends com.google.protobuf.GeneratedMessage.Builder<FilteringAttribute.Builder> implements FilteringAttributeOrBuilder
 A representation of the FilteringAttribute resource.
 Filtering attributes are per event type.
 
Protobuf type google.cloud.eventarc.v1.FilteringAttribute
  • 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<FilteringAttribute.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<FilteringAttribute.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<FilteringAttribute.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public FilteringAttribute.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<FilteringAttribute.Builder>
      Throws:
      IOException
    • getAttribute

      public String getAttribute()
       Output only. Attribute used for filtering the event type.
       
      string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAttribute in interface FilteringAttributeOrBuilder
      Returns:
      The attribute.
    • getAttributeBytes

      public com.google.protobuf.ByteString getAttributeBytes()
       Output only. Attribute used for filtering the event type.
       
      string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAttributeBytes in interface FilteringAttributeOrBuilder
      Returns:
      The bytes for attribute.
    • setAttribute

      public FilteringAttribute.Builder setAttribute(String value)
       Output only. Attribute used for filtering the event type.
       
      string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The attribute to set.
      Returns:
      This builder for chaining.
    • clearAttribute

      public FilteringAttribute.Builder clearAttribute()
       Output only. Attribute used for filtering the event type.
       
      string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setAttributeBytes

      public FilteringAttribute.Builder setAttributeBytes(com.google.protobuf.ByteString value)
       Output only. Attribute used for filtering the event type.
       
      string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for attribute to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Output only. Description of the purpose of the attribute.
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescription in interface FilteringAttributeOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Output only. Description of the purpose of the attribute.
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescriptionBytes in interface FilteringAttributeOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public FilteringAttribute.Builder setDescription(String value)
       Output only. Description of the purpose of the attribute.
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public FilteringAttribute.Builder clearDescription()
       Output only. Description of the purpose of the attribute.
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public FilteringAttribute.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Output only. Description of the purpose of the attribute.
       
      string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getRequired

      public boolean getRequired()
       Output only. If true, the triggers for this provider should always specify
       a filter on these attributes. Trigger creation will fail otherwise.
       
      bool required = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRequired in interface FilteringAttributeOrBuilder
      Returns:
      The required.
    • setRequired

      public FilteringAttribute.Builder setRequired(boolean value)
       Output only. If true, the triggers for this provider should always specify
       a filter on these attributes. Trigger creation will fail otherwise.
       
      bool required = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The required to set.
      Returns:
      This builder for chaining.
    • clearRequired

      public FilteringAttribute.Builder clearRequired()
       Output only. If true, the triggers for this provider should always specify
       a filter on these attributes. Trigger creation will fail otherwise.
       
      bool required = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getPathPatternSupported

      public boolean getPathPatternSupported()
       Output only. If true, the attribute accepts matching expressions in the
       Eventarc PathPattern format.
       
      bool path_pattern_supported = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPathPatternSupported in interface FilteringAttributeOrBuilder
      Returns:
      The pathPatternSupported.
    • setPathPatternSupported

      public FilteringAttribute.Builder setPathPatternSupported(boolean value)
       Output only. If true, the attribute accepts matching expressions in the
       Eventarc PathPattern format.
       
      bool path_pattern_supported = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The pathPatternSupported to set.
      Returns:
      This builder for chaining.
    • clearPathPatternSupported

      public FilteringAttribute.Builder clearPathPatternSupported()
       Output only. If true, the attribute accepts matching expressions in the
       Eventarc PathPattern format.
       
      bool path_pattern_supported = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.