Class EventType (1.47.0)

public final class EventType extends GeneratedMessageV3 implements EventTypeOrBuilder

A representation of the event type resource.

Protobuf type google.cloud.eventarc.v1.EventType

Implements

EventTypeOrBuilder

Static Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

EVENT_SCHEMA_URI_FIELD_NUMBER

public static final int EVENT_SCHEMA_URI_FIELD_NUMBER
Field Value
Type Description
int

FILTERING_ATTRIBUTES_FIELD_NUMBER

public static final int FILTERING_ATTRIBUTES_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EventType getDefaultInstance()
Returns
Type Description
EventType

getDescriptor()

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

newBuilder()

public static EventType.Builder newBuilder()
Returns
Type Description
EventType.Builder

newBuilder(EventType prototype)

public static EventType.Builder newBuilder(EventType prototype)
Parameter
Name Description
prototype EventType
Returns
Type Description
EventType.Builder

parseDelimitedFrom(InputStream input)

public static EventType parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EventType
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventType parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventType
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static EventType parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
EventType
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EventType parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventType
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EventType parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
EventType
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EventType parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventType
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EventType parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EventType
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EventType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventType
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static EventType parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EventType
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventType parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventType
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static EventType parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EventType
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EventType parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventType
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<EventType> parser()
Returns
Type Description
Parser<EventType>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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>

getParserForType()

public Parser<EventType> getParserForType()
Returns
Type Description
Parser<EventType>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public EventType.Builder newBuilderForType()
Returns
Type Description
EventType.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EventType.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EventType.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public EventType.Builder toBuilder()
Returns
Type Description
EventType.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException