Class NotificationConfig.StreamingConfig.Builder (2.44.0)

public static final class NotificationConfig.StreamingConfig.Builder extends GeneratedMessageV3.Builder<NotificationConfig.StreamingConfig.Builder> implements NotificationConfig.StreamingConfigOrBuilder

The config for streaming-based notifications, which send each event as soon as it is detected.

Protobuf type google.cloud.securitycenter.v1.NotificationConfig.StreamingConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NotificationConfig.StreamingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder
Overrides

build()

public NotificationConfig.StreamingConfig build()
Returns
TypeDescription
NotificationConfig.StreamingConfig

buildPartial()

public NotificationConfig.StreamingConfig buildPartial()
Returns
TypeDescription
NotificationConfig.StreamingConfig

clear()

public NotificationConfig.StreamingConfig.Builder clear()
Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NotificationConfig.StreamingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder
Overrides

clearFilter()

public NotificationConfig.StreamingConfig.Builder clearFilter()

Expression that defines the filter to apply across create/update events of assets or findings as specified by the event type. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND.

Restrictions have the form <field> <operator> <value> and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource.

The supported operators are:

  • = for all value types.
  • >, <, >=, <= for integer values.
  • :, meaning substring matching, for strings.

    The supported value types are:

  • string literals in quotes.

  • integer literals without quotes.
  • boolean literals true and false without quotes.

string filter = 1;

Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NotificationConfig.StreamingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder
Overrides

clone()

public NotificationConfig.StreamingConfig.Builder clone()
Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder
Overrides

getDefaultInstanceForType()

public NotificationConfig.StreamingConfig getDefaultInstanceForType()
Returns
TypeDescription
NotificationConfig.StreamingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFilter()

public String getFilter()

Expression that defines the filter to apply across create/update events of assets or findings as specified by the event type. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND.

Restrictions have the form <field> <operator> <value> and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource.

The supported operators are:

  • = for all value types.
  • >, <, >=, <= for integer values.
  • :, meaning substring matching, for strings.

    The supported value types are:

  • string literals in quotes.

  • integer literals without quotes.
  • boolean literals true and false without quotes.

string filter = 1;

Returns
TypeDescription
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Expression that defines the filter to apply across create/update events of assets or findings as specified by the event type. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND.

Restrictions have the form <field> <operator> <value> and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource.

The supported operators are:

  • = for all value types.
  • >, <, >=, <= for integer values.
  • :, meaning substring matching, for strings.

    The supported value types are:

  • string literals in quotes.

  • integer literals without quotes.
  • boolean literals true and false without quotes.

string filter = 1;

Returns
TypeDescription
ByteString

The bytes for filter.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NotificationConfig.StreamingConfig other)

public NotificationConfig.StreamingConfig.Builder mergeFrom(NotificationConfig.StreamingConfig other)
Parameter
NameDescription
otherNotificationConfig.StreamingConfig
Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NotificationConfig.StreamingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NotificationConfig.StreamingConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NotificationConfig.StreamingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public NotificationConfig.StreamingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder
Overrides

setFilter(String value)

public NotificationConfig.StreamingConfig.Builder setFilter(String value)

Expression that defines the filter to apply across create/update events of assets or findings as specified by the event type. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND.

Restrictions have the form <field> <operator> <value> and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource.

The supported operators are:

  • = for all value types.
  • >, <, >=, <= for integer values.
  • :, meaning substring matching, for strings.

    The supported value types are:

  • string literals in quotes.

  • integer literals without quotes.
  • boolean literals true and false without quotes.

string filter = 1;

Parameter
NameDescription
valueString

The filter to set.

Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public NotificationConfig.StreamingConfig.Builder setFilterBytes(ByteString value)

Expression that defines the filter to apply across create/update events of assets or findings as specified by the event type. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND.

Restrictions have the form <field> <operator> <value> and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource.

The supported operators are:

  • = for all value types.
  • >, <, >=, <= for integer values.
  • :, meaning substring matching, for strings.

    The supported value types are:

  • string literals in quotes.

  • integer literals without quotes.
  • boolean literals true and false without quotes.

string filter = 1;

Parameter
NameDescription
valueByteString

The bytes for filter to set.

Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NotificationConfig.StreamingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NotificationConfig.StreamingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NotificationConfig.StreamingConfig.Builder
Overrides