Package dev.sigstore.proto.events.v1
Interface CloudEventOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CloudEvent,CloudEvent.Builder
public interface CloudEventOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description 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()java.lang.StringgetId()Required Attributescom.google.protobuf.ByteStringgetIdBytes()Required Attributescom.google.protobuf.AnygetProtoData().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;-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getId
java.lang.String getId()
Required Attributes
string id = 1;- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()
Required Attributes
string id = 1;- Returns:
- The bytes for id.
-
getSource
java.lang.String getSource()
URI-reference
string source = 2;- Returns:
- The source.
-
getSourceBytes
com.google.protobuf.ByteString getSourceBytes()
URI-reference
string source = 2;- Returns:
- The bytes for source.
-
getSpecVersion
java.lang.String getSpecVersion()
string spec_version = 3;- Returns:
- The specVersion.
-
getSpecVersionBytes
com.google.protobuf.ByteString getSpecVersionBytes()
string spec_version = 3;- Returns:
- The bytes for specVersion.
-
getType
java.lang.String getType()
string type = 4;- Returns:
- The type.
-
getTypeBytes
com.google.protobuf.ByteString getTypeBytes()
string type = 4;- Returns:
- The bytes for type.
-
getAttributesCount
int getAttributesCount()
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
-
containsAttributes
boolean containsAttributes(java.lang.String key)
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
-
getAttributes
@Deprecated java.util.Map<java.lang.String,CloudEvent.CloudEventAttributeValue> getAttributes()
Deprecated.UsegetAttributesMap()instead.
-
getAttributesMap
java.util.Map<java.lang.String,CloudEvent.CloudEventAttributeValue> getAttributesMap()
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
-
getAttributesOrDefault
CloudEvent.CloudEventAttributeValue getAttributesOrDefault(java.lang.String key, CloudEvent.CloudEventAttributeValue defaultValue)
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
-
getAttributesOrThrow
CloudEvent.CloudEventAttributeValue getAttributesOrThrow(java.lang.String key)
Optional & Extension Attributes
map<string, .dev.sigstore.events.v1.CloudEvent.CloudEventAttributeValue> attributes = 5;
-
hasBinaryData
boolean hasBinaryData()
bytes binary_data = 6;- Returns:
- Whether the binaryData field is set.
-
getBinaryData
com.google.protobuf.ByteString getBinaryData()
bytes binary_data = 6;- Returns:
- The binaryData.
-
hasTextData
boolean hasTextData()
string text_data = 7;- Returns:
- Whether the textData field is set.
-
getTextData
java.lang.String getTextData()
string text_data = 7;- Returns:
- The textData.
-
getTextDataBytes
com.google.protobuf.ByteString getTextDataBytes()
string text_data = 7;- Returns:
- The bytes for textData.
-
hasProtoData
boolean hasProtoData()
.google.protobuf.Any proto_data = 8;- Returns:
- Whether the protoData field is set.
-
getProtoData
com.google.protobuf.Any getProtoData()
.google.protobuf.Any proto_data = 8;- Returns:
- The protoData.
-
getProtoDataOrBuilder
com.google.protobuf.AnyOrBuilder getProtoDataOrBuilder()
.google.protobuf.Any proto_data = 8;
-
getDataCase
CloudEvent.DataCase getDataCase()
-
-