Class EventType.Builder (1.8.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.eventarc.v1.FilteringAttribute>
Returns
TypeDescription
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
NameDescription
valueFilteringAttribute
Returns
TypeDescription
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
NameDescription
builderForValueFilteringAttribute.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueFilteringAttribute
Returns
TypeDescription
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
NameDescription
indexint
builderForValueFilteringAttribute.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
FilteringAttribute.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EventType build()
Returns
TypeDescription
EventType

buildPartial()

public EventType buildPartial()
Returns
TypeDescription
EventType

clear()

public EventType.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
EventType.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EventType.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
EventType.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public EventType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
EventType.Builder

This builder for chaining.

clone()

public EventType.Builder clone()
Returns
TypeDescription
EventType.Builder
Overrides

getDefaultInstanceForType()

public EventType getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EventType other)

public EventType.Builder mergeFrom(EventType other)
Parameter
NameDescription
otherEventType
Returns
TypeDescription
EventType.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EventType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
valueString

The eventSchemaUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for eventSchemaUri to set.

Returns
TypeDescription
EventType.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public EventType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueFilteringAttribute
Returns
TypeDescription
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
NameDescription
indexint
builderForValueFilteringAttribute.Builder
Returns
TypeDescription
EventType.Builder

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

public EventType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The type to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
EventType.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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