Class EventType (1.28.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
TypeDescription
int

EVENT_SCHEMA_URI_FIELD_NUMBER

public static final int EVENT_SCHEMA_URI_FIELD_NUMBER
Field Value
TypeDescription
int

FILTERING_ATTRIBUTES_FIELD_NUMBER

public static final int FILTERING_ATTRIBUTES_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static EventType getDefaultInstance()
Returns
TypeDescription
EventType

getDescriptor()

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

newBuilder()

public static EventType.Builder newBuilder()
Returns
TypeDescription
EventType.Builder

newBuilder(EventType prototype)

public static EventType.Builder newBuilder(EventType prototype)
Parameter
NameDescription
prototypeEventType
Returns
TypeDescription
EventType.Builder

parseDelimitedFrom(InputStream input)

public static EventType parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EventType
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventType parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventType
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static EventType parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
EventType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EventType parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EventType parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
EventType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EventType parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EventType parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
EventType
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EventType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventType
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static EventType parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EventType
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventType parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventType
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static EventType parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
EventType
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EventType parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EventType
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<EventType> parser()
Returns
TypeDescription
Parser<EventType>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

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>

getParserForType()

public Parser<EventType> getParserForType()
Returns
TypeDescription
Parser<EventType>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public EventType.Builder newBuilderForType()
Returns
TypeDescription
EventType.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EventType.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
EventType.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public EventType.Builder toBuilder()
Returns
TypeDescription
EventType.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException