Class EventFilter.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EventFilter.Builder>
com.google.cloud.functions.v2beta.EventFilter.Builder
All Implemented Interfaces:
EventFilterOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
EventFilter

public static final class EventFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<EventFilter.Builder> implements EventFilterOrBuilder
 Filters events based on exact matches on the CloudEvents attributes.
 
Protobuf type google.cloud.functions.v2beta.EventFilter
  • 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<EventFilter.Builder>
    • clear

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

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

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

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

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

      public EventFilter.Builder mergeFrom(EventFilter other)
    • isInitialized

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

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

      public String getAttribute()
       Required. The name of a CloudEvents attribute.
       
      string attribute = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAttribute in interface EventFilterOrBuilder
      Returns:
      The attribute.
    • getAttributeBytes

      public com.google.protobuf.ByteString getAttributeBytes()
       Required. The name of a CloudEvents attribute.
       
      string attribute = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAttributeBytes in interface EventFilterOrBuilder
      Returns:
      The bytes for attribute.
    • setAttribute

      public EventFilter.Builder setAttribute(String value)
       Required. The name of a CloudEvents attribute.
       
      string attribute = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The attribute to set.
      Returns:
      This builder for chaining.
    • clearAttribute

      public EventFilter.Builder clearAttribute()
       Required. The name of a CloudEvents attribute.
       
      string attribute = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAttributeBytes

      public EventFilter.Builder setAttributeBytes(com.google.protobuf.ByteString value)
       Required. The name of a CloudEvents attribute.
       
      string attribute = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for attribute to set.
      Returns:
      This builder for chaining.
    • getValue

      public String getValue()
       Required. The value for the attribute.
       
      string value = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getValue in interface EventFilterOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       Required. The value for the attribute.
       
      string value = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getValueBytes in interface EventFilterOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public EventFilter.Builder setValue(String value)
       Required. The value for the attribute.
       
      string value = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public EventFilter.Builder clearValue()
       Required. The value for the attribute.
       
      string value = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setValueBytes

      public EventFilter.Builder setValueBytes(com.google.protobuf.ByteString value)
       Required. The value for the attribute.
       
      string value = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.
    • getOperator

      public String getOperator()
       Optional. The operator used for matching the events with the value of the
       filter. If not specified, only events that have an exact key-value pair
       specified in the filter are matched. The only allowed value is
       `match-path-pattern`.
       
      string operator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOperator in interface EventFilterOrBuilder
      Returns:
      The operator.
    • getOperatorBytes

      public com.google.protobuf.ByteString getOperatorBytes()
       Optional. The operator used for matching the events with the value of the
       filter. If not specified, only events that have an exact key-value pair
       specified in the filter are matched. The only allowed value is
       `match-path-pattern`.
       
      string operator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOperatorBytes in interface EventFilterOrBuilder
      Returns:
      The bytes for operator.
    • setOperator

      public EventFilter.Builder setOperator(String value)
       Optional. The operator used for matching the events with the value of the
       filter. If not specified, only events that have an exact key-value pair
       specified in the filter are matched. The only allowed value is
       `match-path-pattern`.
       
      string operator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The operator to set.
      Returns:
      This builder for chaining.
    • clearOperator

      public EventFilter.Builder clearOperator()
       Optional. The operator used for matching the events with the value of the
       filter. If not specified, only events that have an exact key-value pair
       specified in the filter are matched. The only allowed value is
       `match-path-pattern`.
       
      string operator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setOperatorBytes

      public EventFilter.Builder setOperatorBytes(com.google.protobuf.ByteString value)
       Optional. The operator used for matching the events with the value of the
       filter. If not specified, only events that have an exact key-value pair
       specified in the filter are matched. The only allowed value is
       `match-path-pattern`.
       
      string operator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for operator to set.
      Returns:
      This builder for chaining.