Package dev.sigstore.proto.events.v1
Class CloudEvent.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<CloudEvent.Builder>
-
- dev.sigstore.proto.events.v1.CloudEvent.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CloudEventOrBuilder,java.lang.Cloneable
- Enclosing class:
- CloudEvent
public static final class CloudEvent.Builder extends com.google.protobuf.GeneratedMessage.Builder<CloudEvent.Builder> implements CloudEventOrBuilder
Protobuf typedev.sigstore.events.v1.CloudEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CloudEventbuild()CloudEventbuildPartial()CloudEvent.Builderclear()CloudEvent.BuilderclearAttributes()CloudEvent.BuilderclearBinaryData()bytes binary_data = 6;CloudEvent.BuilderclearData()CloudEvent.BuilderclearId()Required AttributesCloudEvent.BuilderclearProtoData().google.protobuf.Any proto_data = 8;CloudEvent.BuilderclearSource()URI-referenceCloudEvent.BuilderclearSpecVersion()string spec_version = 3;CloudEvent.BuilderclearTextData()string text_data = 7;CloudEvent.BuilderclearType()string type = 4;booleancontainsAttributes(java.lang.String key)Optional & Extension Attributesjava.util.Map<java.lang.String,CloudEvent.CloudEventAttributeValue>getAttributes()Deprecated.intgetAttributesCount()Optional & Extension Attributesjava.util.Map<java.lang.String,CloudEvent.CloudEventAttributeValue>getAttributesMap()Optional & Extension AttributesCloudEvent.CloudEventAttributeValuegetAttributesOrDefault(java.lang.String key, CloudEvent.CloudEventAttributeValue defaultValue)Optional & Extension AttributesCloudEvent.CloudEventAttributeValuegetAttributesOrThrow(java.lang.String key)Optional & Extension Attributescom.google.protobuf.ByteStringgetBinaryData()bytes binary_data = 6;CloudEvent.DataCasegetDataCase()CloudEventgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetId()Required Attributescom.google.protobuf.ByteStringgetIdBytes()Required Attributesjava.util.Map<java.lang.String,CloudEvent.CloudEventAttributeValue>getMutableAttributes()Deprecated.com.google.protobuf.AnygetProtoData().google.protobuf.Any proto_data = 8;com.google.protobuf.Any.BuildergetProtoDataBuilder().google.protobuf.Any proto_data = 8;com.google.protobuf.AnyOrBuildergetProtoDataOrBuilder().google.protobuf.Any proto_data = 8;java.lang.StringgetSource()URI-referencecom.google.protobuf.ByteStringgetSourceBytes()URI-referencejava.lang.StringgetSpecVersion()string spec_version = 3;com.google.protobuf.ByteStringgetSpecVersionBytes()string spec_version = 3;java.lang.StringgetTextData()string text_data = 7;com.google.protobuf.ByteStringgetTextDataBytes()string text_data = 7;java.lang.StringgetType()string type = 4;com.google.protobuf.ByteStringgetTypeBytes()string type = 4;booleanhasBinaryData()bytes binary_data = 6;booleanhasProtoData().google.protobuf.Any proto_data = 8;booleanhasTextData()string text_data = 7;protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number)booleanisInitialized()CloudEvent.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CloudEvent.BuildermergeFrom(com.google.protobuf.Message other)CloudEvent.BuildermergeFrom(CloudEvent other)CloudEvent.BuildermergeProtoData(com.google.protobuf.Any value).google.protobuf.Any proto_data = 8;CloudEvent.BuilderputAllAttributes(java.util.Map<java.lang.String,CloudEvent.CloudEventAttributeValue> values)Optional & Extension AttributesCloudEvent.BuilderputAttributes(java.lang.String key, CloudEvent.CloudEventAttributeValue value)Optional & Extension AttributesCloudEvent.CloudEventAttributeValue.BuilderputAttributesBuilderIfAbsent(java.lang.String key)Optional & Extension AttributesCloudEvent.BuilderremoveAttributes(java.lang.String key)Optional & Extension AttributesCloudEvent.BuildersetBinaryData(com.google.protobuf.ByteString value)bytes binary_data = 6;CloudEvent.BuildersetId(java.lang.String value)Required AttributesCloudEvent.BuildersetIdBytes(com.google.protobuf.ByteString value)Required AttributesCloudEvent.BuildersetProtoData(com.google.protobuf.Any value).google.protobuf.Any proto_data = 8;CloudEvent.BuildersetProtoData(com.google.protobuf.Any.Builder builderForValue).google.protobuf.Any proto_data = 8;CloudEvent.BuildersetSource(java.lang.String value)URI-referenceCloudEvent.BuildersetSourceBytes(com.google.protobuf.ByteString value)URI-referenceCloudEvent.BuildersetSpecVersion(java.lang.String value)string spec_version = 3;CloudEvent.BuildersetSpecVersionBytes(com.google.protobuf.ByteString value)string spec_version = 3;CloudEvent.BuildersetTextData(java.lang.String value)string text_data = 7;CloudEvent.BuildersetTextDataBytes(com.google.protobuf.ByteString value)string text_data = 7;CloudEvent.BuildersetType(java.lang.String value)string type = 4;CloudEvent.BuildersetTypeBytes(com.google.protobuf.ByteString value)string type = 4;-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CloudEvent.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<CloudEvent.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CloudEvent.Builder>
-
clear
public CloudEvent.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CloudEvent.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.GeneratedMessage.Builder<CloudEvent.Builder>
-
getDefaultInstanceForType
public CloudEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CloudEvent build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CloudEvent buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public CloudEvent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CloudEvent.Builder>
-
mergeFrom
public CloudEvent.Builder mergeFrom(CloudEvent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CloudEvent.Builder>
-
mergeFrom
public CloudEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CloudEvent.Builder>- Throws:
java.io.IOException
-
getDataCase
public CloudEvent.DataCase getDataCase()
- Specified by:
getDataCasein interfaceCloudEventOrBuilder
-
clearData
public CloudEvent.Builder clearData()
-
getId
public java.lang.String getId()
Required Attributes
string id = 1;- Specified by:
getIdin interfaceCloudEventOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
Required Attributes
string id = 1;- Specified by:
getIdBytesin interfaceCloudEventOrBuilder- Returns:
- The bytes for id.
-
setId
public CloudEvent.Builder setId(java.lang.String value)
Required Attributes
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public CloudEvent.Builder clearId()
Required Attributes
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
public CloudEvent.Builder setIdBytes(com.google.protobuf.ByteString value)
Required Attributes
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getSource
public java.lang.String getSource()
URI-reference
string source = 2;- Specified by:
getSourcein interfaceCloudEventOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()
URI-reference
string source = 2;- Specified by:
getSourceBytesin interfaceCloudEventOrBuilder- Returns:
- The bytes for source.
-
setSource
public CloudEvent.Builder setSource(java.lang.String value)
URI-reference
string source = 2;- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
clearSource
public CloudEvent.Builder clearSource()
URI-reference
string source = 2;- Returns:
- This builder for chaining.
-
setSourceBytes
public CloudEvent.Builder setSourceBytes(com.google.protobuf.ByteString value)
URI-reference
string source = 2;- Parameters:
value- The bytes for source to set.- Returns:
- This builder for chaining.
-
getSpecVersion
public java.lang.String getSpecVersion()
string spec_version = 3;- Specified by:
getSpecVersionin interfaceCloudEventOrBuilder- Returns:
- The specVersion.
-
getSpecVersionBytes
public com.google.protobuf.ByteString getSpecVersionBytes()
string spec_version = 3;- Specified by:
getSpecVersionBytesin interfaceCloudEventOrBuilder- Returns:
- The bytes for specVersion.
-
setSpecVersion
public CloudEvent.Builder setSpecVersion(java.lang.String value)
string spec_version = 3;- Parameters:
value- The specVersion to set.- Returns:
- This builder for chaining.
-
clearSpecVersion
public CloudEvent.Builder clearSpecVersion()
string spec_version = 3;- Returns:
- This builder for chaining.
-
setSpecVersionBytes
public CloudEvent.Builder setSpecVersionBytes(com.google.protobuf.ByteString value)
string spec_version = 3;- Parameters:
value- The bytes for specVersion to set.- Returns:
- This builder for chaining.
-
getType
public java.lang.String getType()
string type = 4;- Specified by:
getTypein interfaceCloudEventOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
string type = 4;- Specified by:
getTypeBytesin interfaceCloudEventOrBuilder- Returns:
- The bytes for type.
-
setType
public CloudEvent.Builder setType(java.lang.String value)
string type = 4;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public CloudEvent.Builder clearType()
string type = 4;- Returns:
- This builder for chaining.
-
setTypeBytes
public CloudEvent.Builder setTypeBytes(com.google.protobuf.ByteString value)
string type = 4;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
getAttributesCount
public int getAttributesCount()
Description copied from interface:CloudEventOrBuilderOptional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;- Specified by:
getAttributesCountin interfaceCloudEventOrBuilder
-
containsAttributes
public boolean containsAttributes(java.lang.String key)
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;- Specified by:
containsAttributesin interfaceCloudEventOrBuilder
-
getAttributes
@Deprecated public java.util.Map<java.lang.String,CloudEvent.CloudEventAttributeValue> getAttributes()
Deprecated.UsegetAttributesMap()instead.- Specified by:
getAttributesin interfaceCloudEventOrBuilder
-
getAttributesMap
public java.util.Map<java.lang.String,CloudEvent.CloudEventAttributeValue> getAttributesMap()
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;- Specified by:
getAttributesMapin interfaceCloudEventOrBuilder
-
getAttributesOrDefault
public CloudEvent.CloudEventAttributeValue getAttributesOrDefault(java.lang.String key, CloudEvent.CloudEventAttributeValue defaultValue)
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;- Specified by:
getAttributesOrDefaultin interfaceCloudEventOrBuilder
-
getAttributesOrThrow
public CloudEvent.CloudEventAttributeValue getAttributesOrThrow(java.lang.String key)
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;- Specified by:
getAttributesOrThrowin interfaceCloudEventOrBuilder
-
clearAttributes
public CloudEvent.Builder clearAttributes()
-
removeAttributes
public CloudEvent.Builder removeAttributes(java.lang.String key)
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
-
getMutableAttributes
@Deprecated public java.util.Map<java.lang.String,CloudEvent.CloudEventAttributeValue> getMutableAttributes()
Deprecated.Use alternate mutation accessors instead.
-
putAttributes
public CloudEvent.Builder putAttributes(java.lang.String key, CloudEvent.CloudEventAttributeValue value)
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
-
putAllAttributes
public CloudEvent.Builder putAllAttributes(java.util.Map<java.lang.String,CloudEvent.CloudEventAttributeValue> values)
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
-
putAttributesBuilderIfAbsent
public CloudEvent.CloudEventAttributeValue.Builder putAttributesBuilderIfAbsent(java.lang.String key)
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
-
hasBinaryData
public boolean hasBinaryData()
bytes binary_data = 6;- Specified by:
hasBinaryDatain interfaceCloudEventOrBuilder- Returns:
- Whether the binaryData field is set.
-
getBinaryData
public com.google.protobuf.ByteString getBinaryData()
bytes binary_data = 6;- Specified by:
getBinaryDatain interfaceCloudEventOrBuilder- Returns:
- The binaryData.
-
setBinaryData
public CloudEvent.Builder setBinaryData(com.google.protobuf.ByteString value)
bytes binary_data = 6;- Parameters:
value- The binaryData to set.- Returns:
- This builder for chaining.
-
clearBinaryData
public CloudEvent.Builder clearBinaryData()
bytes binary_data = 6;- Returns:
- This builder for chaining.
-
hasTextData
public boolean hasTextData()
string text_data = 7;- Specified by:
hasTextDatain interfaceCloudEventOrBuilder- Returns:
- Whether the textData field is set.
-
getTextData
public java.lang.String getTextData()
string text_data = 7;- Specified by:
getTextDatain interfaceCloudEventOrBuilder- Returns:
- The textData.
-
getTextDataBytes
public com.google.protobuf.ByteString getTextDataBytes()
string text_data = 7;- Specified by:
getTextDataBytesin interfaceCloudEventOrBuilder- Returns:
- The bytes for textData.
-
setTextData
public CloudEvent.Builder setTextData(java.lang.String value)
string text_data = 7;- Parameters:
value- The textData to set.- Returns:
- This builder for chaining.
-
clearTextData
public CloudEvent.Builder clearTextData()
string text_data = 7;- Returns:
- This builder for chaining.
-
setTextDataBytes
public CloudEvent.Builder setTextDataBytes(com.google.protobuf.ByteString value)
string text_data = 7;- Parameters:
value- The bytes for textData to set.- Returns:
- This builder for chaining.
-
hasProtoData
public boolean hasProtoData()
.google.protobuf.Any proto_data = 8;- Specified by:
hasProtoDatain interfaceCloudEventOrBuilder- Returns:
- Whether the protoData field is set.
-
getProtoData
public com.google.protobuf.Any getProtoData()
.google.protobuf.Any proto_data = 8;- Specified by:
getProtoDatain interfaceCloudEventOrBuilder- Returns:
- The protoData.
-
setProtoData
public CloudEvent.Builder setProtoData(com.google.protobuf.Any value)
.google.protobuf.Any proto_data = 8;
-
setProtoData
public CloudEvent.Builder setProtoData(com.google.protobuf.Any.Builder builderForValue)
.google.protobuf.Any proto_data = 8;
-
mergeProtoData
public CloudEvent.Builder mergeProtoData(com.google.protobuf.Any value)
.google.protobuf.Any proto_data = 8;
-
clearProtoData
public CloudEvent.Builder clearProtoData()
.google.protobuf.Any proto_data = 8;
-
getProtoDataBuilder
public com.google.protobuf.Any.Builder getProtoDataBuilder()
.google.protobuf.Any proto_data = 8;
-
getProtoDataOrBuilder
public com.google.protobuf.AnyOrBuilder getProtoDataOrBuilder()
.google.protobuf.Any proto_data = 8;- Specified by:
getProtoDataOrBuilderin interfaceCloudEventOrBuilder
-
-