Package com.google.cloud.eventarc.v1
Class EventType.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
- com.google.cloud.eventarc.v1.EventType.Builder
-
- All Implemented Interfaces:
EventTypeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EventType
public static final class EventType.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder> implements EventTypeOrBuilder
A representation of the event type resource.
Protobuf typegoogle.cloud.eventarc.v1.EventType
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
clear
public EventType.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
getDefaultInstanceForType
public EventType getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public EventType build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EventType buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EventType.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
setField
public EventType.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
clearField
public EventType.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
clearOneof
public EventType.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
setRepeatedField
public EventType.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
addRepeatedField
public EventType.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
mergeFrom
public EventType.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EventType.Builder>
-
mergeFrom
public EventType.Builder mergeFrom(EventType other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
mergeFrom
public EventType.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EventType.Builder>- Throws:
IOException
-
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];- Specified by:
getTypein interfaceEventTypeOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.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];- Specified by:
getTypeBytesin interfaceEventTypeOrBuilder- Returns:
- The bytes for type.
-
setType
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];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setTypeBytes
public EventType.Builder setTypeBytes(com.google.protobuf.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];- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDescriptionin interfaceEventTypeOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.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];- Specified by:
getDescriptionBytesin interfaceEventTypeOrBuilder- Returns:
- The bytes for description.
-
setDescription
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];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDescriptionBytes
public EventType.Builder setDescriptionBytes(com.google.protobuf.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];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getFilteringAttributesListin interfaceEventTypeOrBuilder
-
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];- Specified by:
getFilteringAttributesCountin interfaceEventTypeOrBuilder
-
getFilteringAttributes
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];- Specified by:
getFilteringAttributesin interfaceEventTypeOrBuilder
-
setFilteringAttributes
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];
-
setFilteringAttributes
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];
-
addFilteringAttributes
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];
-
addFilteringAttributes
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];
-
addFilteringAttributes
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];
-
addFilteringAttributes
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];
-
addAllFilteringAttributes
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];
-
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];
-
removeFilteringAttributes
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];
-
getFilteringAttributesBuilder
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];
-
getFilteringAttributesOrBuilder
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];- Specified by:
getFilteringAttributesOrBuilderin interfaceEventTypeOrBuilder
-
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];- Specified by:
getFilteringAttributesOrBuilderListin interfaceEventTypeOrBuilder
-
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];
-
addFilteringAttributesBuilder
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];
-
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];
-
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];- Specified by:
getEventSchemaUriin interfaceEventTypeOrBuilder- Returns:
- The eventSchemaUri.
-
getEventSchemaUriBytes
public com.google.protobuf.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];- Specified by:
getEventSchemaUriBytesin interfaceEventTypeOrBuilder- Returns:
- The bytes for eventSchemaUri.
-
setEventSchemaUri
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];- Parameters:
value- The eventSchemaUri to set.- Returns:
- 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:
- This builder for chaining.
-
setEventSchemaUriBytes
public EventType.Builder setEventSchemaUriBytes(com.google.protobuf.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];- Parameters:
value- The bytes for eventSchemaUri to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final EventType.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
mergeUnknownFields
public final EventType.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
-