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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
clear
public EventType.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
getDefaultInstanceForType
public EventType getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public EventType build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EventType buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EventType.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
setField
public EventType.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
clearField
public EventType.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
clearOneof
public EventType.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
setRepeatedField
public EventType.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
addRepeatedField
public EventType.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
mergeFrom
public EventType.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EventType.Builder>
-
mergeFrom
public EventType.Builder mergeFrom(EventType other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getType
in 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:
getTypeBytes
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
getFilteringAttributesList
in 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:
getFilteringAttributesCount
in 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:
getFilteringAttributes
in 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:
getFilteringAttributesOrBuilder
in 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:
getFilteringAttributesOrBuilderList
in 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:
getEventSchemaUri
in 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:
getEventSchemaUriBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
mergeUnknownFields
public final EventType.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EventType.Builder>
-
-