Class EventType.Builder (1.44.0)

public static final class EventType.Builder extends GeneratedMessageV3.Builder<EventType.Builder> implements EventTypeOrBuilder

A representation of the event type resource.

Protobuf type google.cloud.eventarc.v1.EventType

Implements

EventTypeOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllFilteringAttributes(Iterable<? extends FilteringAttribute> values)

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];

Parameter
Name Description
values Iterable<? extends com.google.cloud.eventarc.v1.FilteringAttribute>
Returns
Type Description
EventType.Builder

addFilteringAttributes(FilteringAttribute value)

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];

Parameter
Name Description
value FilteringAttribute
Returns
Type Description
EventType.Builder

addFilteringAttributes(FilteringAttribute.Builder builderForValue)

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];

Parameter
Name Description
builderForValue FilteringAttribute.Builder
Returns
Type Description
EventType.Builder

addFilteringAttributes(int index, FilteringAttribute value)

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];

Parameters
Name Description
index int
value FilteringAttribute
Returns
Type Description
EventType.Builder

addFilteringAttributes(int index, FilteringAttribute.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue FilteringAttribute.Builder
Returns
Type Description
EventType.Builder

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];

Returns
Type Description
FilteringAttribute.Builder

addFilteringAttributesBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
FilteringAttribute.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EventType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EventType.Builder
Overrides

build()

public EventType build()
Returns
Type Description
EventType

buildPartial()

public EventType buildPartial()
Returns
Type Description
EventType

clear()

public EventType.Builder clear()
Returns
Type Description
EventType.Builder
Overrides

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
Type Description
EventType.Builder

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
Type Description
EventType.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EventType.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
EventType.Builder
Overrides

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];

Returns
Type Description
EventType.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public EventType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
EventType.Builder
Overrides

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
Type Description
EventType.Builder

This builder for chaining.

clone()

public EventType.Builder clone()
Returns
Type Description
EventType.Builder
Overrides

getDefaultInstanceForType()

public EventType getDefaultInstanceForType()
Returns
Type Description
EventType

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];

Returns
Type Description
String

The description.

getDescriptionBytes()

public 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];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
Type Description
String

The eventSchemaUri.

getEventSchemaUriBytes()

public 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];

Returns
Type Description
ByteString

The bytes for eventSchemaUri.

getFilteringAttributes(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
FilteringAttribute

getFilteringAttributesBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
FilteringAttribute.Builder

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];

Returns
Type Description
List<Builder>

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];

Returns
Type Description
int

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];

Returns
Type Description
List<FilteringAttribute>

getFilteringAttributesOrBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
FilteringAttributeOrBuilder

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];

Returns
Type Description
List<? extends com.google.cloud.eventarc.v1.FilteringAttributeOrBuilder>

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];

Returns
Type Description
String

The type.

getTypeBytes()

public 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];

Returns
Type Description
ByteString

The bytes for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EventType other)

public EventType.Builder mergeFrom(EventType other)
Parameter
Name Description
other EventType
Returns
Type Description
EventType.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EventType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventType.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public EventType.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EventType.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EventType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EventType.Builder
Overrides

removeFilteringAttributes(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
EventType.Builder

setDescription(String value)

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];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
EventType.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public EventType.Builder setDescriptionBytes(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];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
EventType.Builder

This builder for chaining.

setEventSchemaUri(String value)

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];

Parameter
Name Description
value String

The eventSchemaUri to set.

Returns
Type Description
EventType.Builder

This builder for chaining.

setEventSchemaUriBytes(ByteString value)

public EventType.Builder setEventSchemaUriBytes(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];

Parameter
Name Description
value ByteString

The bytes for eventSchemaUri to set.

Returns
Type Description
EventType.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public EventType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EventType.Builder
Overrides

setFilteringAttributes(int index, FilteringAttribute value)

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];

Parameters
Name Description
index int
value FilteringAttribute
Returns
Type Description
EventType.Builder

setFilteringAttributes(int index, FilteringAttribute.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue FilteringAttribute.Builder
Returns
Type Description
EventType.Builder

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

public EventType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EventType.Builder
Overrides

setType(String value)

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];

Parameter
Name Description
value String

The type to set.

Returns
Type Description
EventType.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public EventType.Builder setTypeBytes(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];

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
EventType.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final EventType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EventType.Builder
Overrides