main.java.com.streamlayer.triggers.Event Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: streamlayer/triggers/triggers.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.triggers;
/**
* Protobuf type {@code streamlayer.triggers.Event}
*/
public final class Event extends
com.google.protobuf.GeneratedMessageLite<
Event, Event.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.triggers.Event)
EventOrBuilder {
private Event() {
id_ = "";
datasource_ = "";
scope_ = "";
scopeId_ = "";
name_ = "";
value_ = "";
}
public static final int ID_FIELD_NUMBER = 1;
private java.lang.String id_;
/**
*
* unique raw event identifier from datasource
*
*
* string id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
return id_;
}
/**
*
* unique raw event identifier from datasource
*
*
* string id = 1 [json_name = "id"];
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(id_);
}
/**
*
* unique raw event identifier from datasource
*
*
* string id = 1 [json_name = "id"];
* @param value The id to set.
*/
private void setId(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
id_ = value;
}
/**
*
* unique raw event identifier from datasource
*
*
* string id = 1 [json_name = "id"];
*/
private void clearId() {
id_ = getDefaultInstance().getId();
}
/**
*
* unique raw event identifier from datasource
*
*
* string id = 1 [json_name = "id"];
* @param value The bytes for id to set.
*/
private void setIdBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
id_ = value.toStringUtf8();
}
public static final int DATASOURCE_FIELD_NUMBER = 2;
private java.lang.String datasource_;
/**
*
* datasource
*
*
* string datasource = 2 [json_name = "datasource"];
* @return The datasource.
*/
@java.lang.Override
public java.lang.String getDatasource() {
return datasource_;
}
/**
*
* datasource
*
*
* string datasource = 2 [json_name = "datasource"];
* @return The bytes for datasource.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDatasourceBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(datasource_);
}
/**
*
* datasource
*
*
* string datasource = 2 [json_name = "datasource"];
* @param value The datasource to set.
*/
private void setDatasource(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
datasource_ = value;
}
/**
*
* datasource
*
*
* string datasource = 2 [json_name = "datasource"];
*/
private void clearDatasource() {
datasource_ = getDefaultInstance().getDatasource();
}
/**
*
* datasource
*
*
* string datasource = 2 [json_name = "datasource"];
* @param value The bytes for datasource to set.
*/
private void setDatasourceBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
datasource_ = value.toStringUtf8();
}
public static final int SCOPE_FIELD_NUMBER = 3;
private java.lang.String scope_;
/**
*
* scope of event
*
*
* string scope = 3 [json_name = "scope"];
* @return The scope.
*/
@java.lang.Override
public java.lang.String getScope() {
return scope_;
}
/**
*
* scope of event
*
*
* string scope = 3 [json_name = "scope"];
* @return The bytes for scope.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScopeBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(scope_);
}
/**
*
* scope of event
*
*
* string scope = 3 [json_name = "scope"];
* @param value The scope to set.
*/
private void setScope(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
scope_ = value;
}
/**
*
* scope of event
*
*
* string scope = 3 [json_name = "scope"];
*/
private void clearScope() {
scope_ = getDefaultInstance().getScope();
}
/**
*
* scope of event
*
*
* string scope = 3 [json_name = "scope"];
* @param value The bytes for scope to set.
*/
private void setScopeBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
scope_ = value.toStringUtf8();
}
public static final int SCOPE_ID_FIELD_NUMBER = 4;
private java.lang.String scopeId_;
/**
*
* unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
*
*
* string scope_id = 4 [json_name = "scopeId"];
* @return The scopeId.
*/
@java.lang.Override
public java.lang.String getScopeId() {
return scopeId_;
}
/**
*
* unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
*
*
* string scope_id = 4 [json_name = "scopeId"];
* @return The bytes for scopeId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScopeIdBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(scopeId_);
}
/**
*
* unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
*
*
* string scope_id = 4 [json_name = "scopeId"];
* @param value The scopeId to set.
*/
private void setScopeId(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
scopeId_ = value;
}
/**
*
* unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
*
*
* string scope_id = 4 [json_name = "scopeId"];
*/
private void clearScopeId() {
scopeId_ = getDefaultInstance().getScopeId();
}
/**
*
* unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
*
*
* string scope_id = 4 [json_name = "scopeId"];
* @param value The bytes for scopeId to set.
*/
private void setScopeIdBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
scopeId_ = value.toStringUtf8();
}
public static final int NAME_FIELD_NUMBER = 5;
private java.lang.String name_;
/**
*
* event name
*
*
* string name = 5 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return name_;
}
/**
*
* event name
*
*
* string name = 5 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(name_);
}
/**
*
* event name
*
*
* string name = 5 [json_name = "name"];
* @param value The name to set.
*/
private void setName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
name_ = value;
}
/**
*
* event name
*
*
* string name = 5 [json_name = "name"];
*/
private void clearName() {
name_ = getDefaultInstance().getName();
}
/**
*
* event name
*
*
* string name = 5 [json_name = "name"];
* @param value The bytes for name to set.
*/
private void setNameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
name_ = value.toStringUtf8();
}
public static final int VALUE_FIELD_NUMBER = 6;
private java.lang.String value_;
/**
*
* event value
*
*
* string value = 6 [json_name = "value"];
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
return value_;
}
/**
*
* event value
*
*
* string value = 6 [json_name = "value"];
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(value_);
}
/**
*
* event value
*
*
* string value = 6 [json_name = "value"];
* @param value The value to set.
*/
private void setValue(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
value_ = value;
}
/**
*
* event value
*
*
* string value = 6 [json_name = "value"];
*/
private void clearValue() {
value_ = getDefaultInstance().getValue();
}
/**
*
* event value
*
*
* string value = 6 [json_name = "value"];
* @param value The bytes for value to set.
*/
private void setValueBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
value_ = value.toStringUtf8();
}
public static final int TIMESTAMP_FIELD_NUMBER = 7;
private long timestamp_;
/**
*
* timestamp, unixtime millis
*
*
* int64 timestamp = 7 [json_name = "timestamp"];
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
/**
*
* timestamp, unixtime millis
*
*
* int64 timestamp = 7 [json_name = "timestamp"];
* @param value The timestamp to set.
*/
private void setTimestamp(long value) {
timestamp_ = value;
}
/**
*
* timestamp, unixtime millis
*
*
* int64 timestamp = 7 [json_name = "timestamp"];
*/
private void clearTimestamp() {
timestamp_ = 0L;
}
public static com.streamlayer.triggers.Event parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.triggers.Event parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.triggers.Event parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.triggers.Event parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.triggers.Event parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.triggers.Event parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.triggers.Event parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.triggers.Event parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.triggers.Event parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.triggers.Event parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.triggers.Event parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.triggers.Event parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.streamlayer.triggers.Event prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.triggers.Event}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.triggers.Event, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.triggers.Event)
com.streamlayer.triggers.EventOrBuilder {
// Construct using com.streamlayer.triggers.Event.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* unique raw event identifier from datasource
*
*
* string id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
return instance.getId();
}
/**
*
* unique raw event identifier from datasource
*
*
* string id = 1 [json_name = "id"];
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
return instance.getIdBytes();
}
/**
*
* unique raw event identifier from datasource
*
*
* string id = 1 [json_name = "id"];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
copyOnWrite();
instance.setId(value);
return this;
}
/**
*
* unique raw event identifier from datasource
*
*
* string id = 1 [json_name = "id"];
* @return This builder for chaining.
*/
public Builder clearId() {
copyOnWrite();
instance.clearId();
return this;
}
/**
*
* unique raw event identifier from datasource
*
*
* string id = 1 [json_name = "id"];
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setIdBytes(value);
return this;
}
/**
*
* datasource
*
*
* string datasource = 2 [json_name = "datasource"];
* @return The datasource.
*/
@java.lang.Override
public java.lang.String getDatasource() {
return instance.getDatasource();
}
/**
*
* datasource
*
*
* string datasource = 2 [json_name = "datasource"];
* @return The bytes for datasource.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDatasourceBytes() {
return instance.getDatasourceBytes();
}
/**
*
* datasource
*
*
* string datasource = 2 [json_name = "datasource"];
* @param value The datasource to set.
* @return This builder for chaining.
*/
public Builder setDatasource(
java.lang.String value) {
copyOnWrite();
instance.setDatasource(value);
return this;
}
/**
*
* datasource
*
*
* string datasource = 2 [json_name = "datasource"];
* @return This builder for chaining.
*/
public Builder clearDatasource() {
copyOnWrite();
instance.clearDatasource();
return this;
}
/**
*
* datasource
*
*
* string datasource = 2 [json_name = "datasource"];
* @param value The bytes for datasource to set.
* @return This builder for chaining.
*/
public Builder setDatasourceBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setDatasourceBytes(value);
return this;
}
/**
*
* scope of event
*
*
* string scope = 3 [json_name = "scope"];
* @return The scope.
*/
@java.lang.Override
public java.lang.String getScope() {
return instance.getScope();
}
/**
*
* scope of event
*
*
* string scope = 3 [json_name = "scope"];
* @return The bytes for scope.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScopeBytes() {
return instance.getScopeBytes();
}
/**
*
* scope of event
*
*
* string scope = 3 [json_name = "scope"];
* @param value The scope to set.
* @return This builder for chaining.
*/
public Builder setScope(
java.lang.String value) {
copyOnWrite();
instance.setScope(value);
return this;
}
/**
*
* scope of event
*
*
* string scope = 3 [json_name = "scope"];
* @return This builder for chaining.
*/
public Builder clearScope() {
copyOnWrite();
instance.clearScope();
return this;
}
/**
*
* scope of event
*
*
* string scope = 3 [json_name = "scope"];
* @param value The bytes for scope to set.
* @return This builder for chaining.
*/
public Builder setScopeBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setScopeBytes(value);
return this;
}
/**
*
* unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
*
*
* string scope_id = 4 [json_name = "scopeId"];
* @return The scopeId.
*/
@java.lang.Override
public java.lang.String getScopeId() {
return instance.getScopeId();
}
/**
*
* unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
*
*
* string scope_id = 4 [json_name = "scopeId"];
* @return The bytes for scopeId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScopeIdBytes() {
return instance.getScopeIdBytes();
}
/**
*
* unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
*
*
* string scope_id = 4 [json_name = "scopeId"];
* @param value The scopeId to set.
* @return This builder for chaining.
*/
public Builder setScopeId(
java.lang.String value) {
copyOnWrite();
instance.setScopeId(value);
return this;
}
/**
*
* unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
*
*
* string scope_id = 4 [json_name = "scopeId"];
* @return This builder for chaining.
*/
public Builder clearScopeId() {
copyOnWrite();
instance.clearScopeId();
return this;
}
/**
*
* unique scope identifier, e.g. d8539eb6-3e27-40c8-906f-9cd1736321d8, adapter takes it from datasource raw data
*
*
* string scope_id = 4 [json_name = "scopeId"];
* @param value The bytes for scopeId to set.
* @return This builder for chaining.
*/
public Builder setScopeIdBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setScopeIdBytes(value);
return this;
}
/**
*
* event name
*
*
* string name = 5 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return instance.getName();
}
/**
*
* event name
*
*
* string name = 5 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return instance.getNameBytes();
}
/**
*
* event name
*
*
* string name = 5 [json_name = "name"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
copyOnWrite();
instance.setName(value);
return this;
}
/**
*
* event name
*
*
* string name = 5 [json_name = "name"];
* @return This builder for chaining.
*/
public Builder clearName() {
copyOnWrite();
instance.clearName();
return this;
}
/**
*
* event name
*
*
* string name = 5 [json_name = "name"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setNameBytes(value);
return this;
}
/**
*
* event value
*
*
* string value = 6 [json_name = "value"];
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
return instance.getValue();
}
/**
*
* event value
*
*
* string value = 6 [json_name = "value"];
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
return instance.getValueBytes();
}
/**
*
* event value
*
*
* string value = 6 [json_name = "value"];
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
copyOnWrite();
instance.setValue(value);
return this;
}
/**
*
* event value
*
*
* string value = 6 [json_name = "value"];
* @return This builder for chaining.
*/
public Builder clearValue() {
copyOnWrite();
instance.clearValue();
return this;
}
/**
*
* event value
*
*
* string value = 6 [json_name = "value"];
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setValueBytes(value);
return this;
}
/**
*
* timestamp, unixtime millis
*
*
* int64 timestamp = 7 [json_name = "timestamp"];
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return instance.getTimestamp();
}
/**
*
* timestamp, unixtime millis
*
*
* int64 timestamp = 7 [json_name = "timestamp"];
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
copyOnWrite();
instance.setTimestamp(value);
return this;
}
/**
*
* timestamp, unixtime millis
*
*
* int64 timestamp = 7 [json_name = "timestamp"];
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
copyOnWrite();
instance.clearTimestamp();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.triggers.Event)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.streamlayer.triggers.Event();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"id_",
"datasource_",
"scope_",
"scopeId_",
"name_",
"value_",
"timestamp_",
};
java.lang.String info =
"\u0000\u0007\u0000\u0000\u0001\u0007\u0007\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
"\u0003\u0208\u0004\u0208\u0005\u0208\u0006\u0208\u0007\u0002";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.streamlayer.triggers.Event.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:streamlayer.triggers.Event)
private static final com.streamlayer.triggers.Event DEFAULT_INSTANCE;
static {
Event defaultInstance = new Event();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Event.class, defaultInstance);
}
public static com.streamlayer.triggers.Event getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}