Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* The type of data content.
* This field is required if data delivers http request body
* Otherwise, this is optional.
*
*
* string content_type = 4;
* @return The bytes for contentType.
*/
com.google.protobuf.ByteString
getContentTypeBytes();
/**
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
*
* .dapr.proto.common.v1.HTTPExtension http_extension = 5;
* @return Whether the httpExtension field is set.
*/
boolean hasHttpExtension();
/**
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
*
* .dapr.proto.common.v1.HTTPExtension http_extension = 5;
*/
io.dapr.v1.CommonProtos.HTTPExtensionOrBuilder getHttpExtensionOrBuilder();
}
/**
* Protobuf type {@code dapr.proto.runtime.v1.JobEventRequest}
*/
public static final class JobEventRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.JobEventRequest)
JobEventRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use JobEventRequest.newBuilder() to construct.
private JobEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private JobEventRequest() {
name_ = "";
method_ = "";
contentType_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new JobEventRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private JobEventRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
com.google.protobuf.Any.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
method_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
contentType_ = s;
break;
}
case 42: {
io.dapr.v1.CommonProtos.HTTPExtension.Builder subBuilder = null;
if (httpExtension_ != null) {
subBuilder = httpExtension_.toBuilder();
}
httpExtension_ = input.readMessage(io.dapr.v1.CommonProtos.HTTPExtension.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(httpExtension_);
httpExtension_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_JobEventRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_JobEventRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.JobEventRequest.class, io.dapr.v1.DaprAppCallbackProtos.JobEventRequest.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Job name.
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Job name.
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_FIELD_NUMBER = 2;
private com.google.protobuf.Any data_;
/**
*
* Job data to be sent back to app.
*
*
* .google.protobuf.Any data = 2;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return data_ != null;
}
/**
*
* Job data to be sent back to app.
*
*
* .google.protobuf.Any data = 2;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.Any getData() {
return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_;
}
/**
*
* Job data to be sent back to app.
*
*
* .google.protobuf.Any data = 2;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
return getData();
}
public static final int METHOD_FIELD_NUMBER = 3;
private volatile java.lang.Object method_;
/**
*
* Required. method is a method name which will be invoked by caller.
*
* The type of data content.
* This field is required if data delivers http request body
* Otherwise, this is optional.
*
*
* string content_type = 4;
* @return The bytes for contentType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContentTypeBytes() {
java.lang.Object ref = contentType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contentType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HTTP_EXTENSION_FIELD_NUMBER = 5;
private io.dapr.v1.CommonProtos.HTTPExtension httpExtension_;
/**
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
*
* .dapr.proto.common.v1.HTTPExtension http_extension = 5;
* @return Whether the httpExtension field is set.
*/
@java.lang.Override
public boolean hasHttpExtension() {
return httpExtension_ != null;
}
/**
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
*
* .dapr.proto.common.v1.HTTPExtension http_extension = 5;
*/
@java.lang.Override
public io.dapr.v1.CommonProtos.HTTPExtensionOrBuilder getHttpExtensionOrBuilder() {
return getHttpExtension();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (data_ != null) {
output.writeMessage(2, getData());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, method_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, contentType_);
}
if (httpExtension_ != null) {
output.writeMessage(5, getHttpExtension());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (data_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getData());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, method_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, contentType_);
}
if (httpExtension_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getHttpExtension());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.dapr.v1.DaprAppCallbackProtos.JobEventRequest)) {
return super.equals(obj);
}
io.dapr.v1.DaprAppCallbackProtos.JobEventRequest other = (io.dapr.v1.DaprAppCallbackProtos.JobEventRequest) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasData() != other.hasData()) return false;
if (hasData()) {
if (!getData()
.equals(other.getData())) return false;
}
if (!getMethod()
.equals(other.getMethod())) return false;
if (!getContentType()
.equals(other.getContentType())) return false;
if (hasHttpExtension() != other.hasHttpExtension()) return false;
if (hasHttpExtension()) {
if (!getHttpExtension()
.equals(other.getHttpExtension())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
hash = (37 * hash) + METHOD_FIELD_NUMBER;
hash = (53 * hash) + getMethod().hashCode();
hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getContentType().hashCode();
if (hasHttpExtension()) {
hash = (37 * hash) + HTTP_EXTENSION_FIELD_NUMBER;
hash = (53 * hash) + getHttpExtension().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.dapr.v1.DaprAppCallbackProtos.JobEventRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code dapr.proto.runtime.v1.JobEventRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.JobEventRequest)
io.dapr.v1.DaprAppCallbackProtos.JobEventRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_JobEventRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_JobEventRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.JobEventRequest.class, io.dapr.v1.DaprAppCallbackProtos.JobEventRequest.Builder.class);
}
// Construct using io.dapr.v1.DaprAppCallbackProtos.JobEventRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
if (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
method_ = "";
contentType_ = "";
if (httpExtensionBuilder_ == null) {
httpExtension_ = null;
} else {
httpExtension_ = null;
httpExtensionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_JobEventRequest_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.JobEventRequest getDefaultInstanceForType() {
return io.dapr.v1.DaprAppCallbackProtos.JobEventRequest.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.JobEventRequest build() {
io.dapr.v1.DaprAppCallbackProtos.JobEventRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.JobEventRequest buildPartial() {
io.dapr.v1.DaprAppCallbackProtos.JobEventRequest result = new io.dapr.v1.DaprAppCallbackProtos.JobEventRequest(this);
result.name_ = name_;
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
result.method_ = method_;
result.contentType_ = contentType_;
if (httpExtensionBuilder_ == null) {
result.httpExtension_ = httpExtension_;
} else {
result.httpExtension_ = httpExtensionBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.dapr.v1.DaprAppCallbackProtos.JobEventRequest) {
return mergeFrom((io.dapr.v1.DaprAppCallbackProtos.JobEventRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprAppCallbackProtos.JobEventRequest other) {
if (other == io.dapr.v1.DaprAppCallbackProtos.JobEventRequest.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasData()) {
mergeData(other.getData());
}
if (!other.getMethod().isEmpty()) {
method_ = other.method_;
onChanged();
}
if (!other.getContentType().isEmpty()) {
contentType_ = other.contentType_;
onChanged();
}
if (other.hasHttpExtension()) {
mergeHttpExtension(other.getHttpExtension());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.dapr.v1.DaprAppCallbackProtos.JobEventRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprAppCallbackProtos.JobEventRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* Job name.
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Job name.
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Job name.
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Job name.
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Job name.
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private com.google.protobuf.Any data_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_;
/**
*
* Job data to be sent back to app.
*
*
* .google.protobuf.Any data = 2;
* @return Whether the data field is set.
*/
public boolean hasData() {
return dataBuilder_ != null || data_ != null;
}
/**
*
* Job data to be sent back to app.
*
*
* .google.protobuf.Any data = 2;
* @return The data.
*/
public com.google.protobuf.Any getData() {
if (dataBuilder_ == null) {
return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
*
* Job data to be sent back to app.
*
*
* .google.protobuf.Any data = 2;
*/
public Builder setData(com.google.protobuf.Any value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
*
* The type of data content.
* This field is required if data delivers http request body
* Otherwise, this is optional.
*
*
* string content_type = 4;
* @return The bytes for contentType.
*/
public com.google.protobuf.ByteString
getContentTypeBytes() {
java.lang.Object ref = contentType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contentType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The type of data content.
* This field is required if data delivers http request body
* Otherwise, this is optional.
*
*
* string content_type = 4;
* @param value The contentType to set.
* @return This builder for chaining.
*/
public Builder setContentType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
contentType_ = value;
onChanged();
return this;
}
/**
*
* The type of data content.
* This field is required if data delivers http request body
* Otherwise, this is optional.
*
*
* string content_type = 4;
* @return This builder for chaining.
*/
public Builder clearContentType() {
contentType_ = getDefaultInstance().getContentType();
onChanged();
return this;
}
/**
*
* The type of data content.
* This field is required if data delivers http request body
* Otherwise, this is optional.
*
*
* string content_type = 4;
* @param value The bytes for contentType to set.
* @return This builder for chaining.
*/
public Builder setContentTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
contentType_ = value;
onChanged();
return this;
}
private io.dapr.v1.CommonProtos.HTTPExtension httpExtension_;
private com.google.protobuf.SingleFieldBuilderV3<
io.dapr.v1.CommonProtos.HTTPExtension, io.dapr.v1.CommonProtos.HTTPExtension.Builder, io.dapr.v1.CommonProtos.HTTPExtensionOrBuilder> httpExtensionBuilder_;
/**
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
*
* .dapr.proto.common.v1.HTTPExtension http_extension = 5;
* @return Whether the httpExtension field is set.
*/
public boolean hasHttpExtension() {
return httpExtensionBuilder_ != null || httpExtension_ != null;
}
/**
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
*
* .dapr.proto.common.v1.HTTPExtension http_extension = 5;
*/
public Builder setHttpExtension(io.dapr.v1.CommonProtos.HTTPExtension value) {
if (httpExtensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
httpExtension_ = value;
onChanged();
} else {
httpExtensionBuilder_.setMessage(value);
}
return this;
}
/**
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
* HTTP specific fields if request conveys http-compatible request.
* This field is required for http-compatible request. Otherwise,
* this field is optional.
*
*
* .dapr.proto.common.v1.HTTPExtension http_extension = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.dapr.v1.CommonProtos.HTTPExtension, io.dapr.v1.CommonProtos.HTTPExtension.Builder, io.dapr.v1.CommonProtos.HTTPExtensionOrBuilder>
getHttpExtensionFieldBuilder() {
if (httpExtensionBuilder_ == null) {
httpExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.dapr.v1.CommonProtos.HTTPExtension, io.dapr.v1.CommonProtos.HTTPExtension.Builder, io.dapr.v1.CommonProtos.HTTPExtensionOrBuilder>(
getHttpExtension(),
getParentForChildren(),
isClean());
httpExtension_ = null;
}
return httpExtensionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:dapr.proto.runtime.v1.JobEventRequest)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.JobEventRequest)
private static final io.dapr.v1.DaprAppCallbackProtos.JobEventRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprAppCallbackProtos.JobEventRequest();
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public JobEventRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new JobEventRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.JobEventRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface JobEventResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.JobEventResponse)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* JobEventResponse is the response from the app when a job is triggered.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.JobEventResponse}
*/
public static final class JobEventResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.JobEventResponse)
JobEventResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use JobEventResponse.newBuilder() to construct.
private JobEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private JobEventResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new JobEventResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private JobEventResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_JobEventResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_JobEventResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.JobEventResponse.class, io.dapr.v1.DaprAppCallbackProtos.JobEventResponse.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.dapr.v1.DaprAppCallbackProtos.JobEventResponse)) {
return super.equals(obj);
}
io.dapr.v1.DaprAppCallbackProtos.JobEventResponse other = (io.dapr.v1.DaprAppCallbackProtos.JobEventResponse) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.dapr.v1.DaprAppCallbackProtos.JobEventResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* JobEventResponse is the response from the app when a job is triggered.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.JobEventResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.JobEventResponse)
io.dapr.v1.DaprAppCallbackProtos.JobEventResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_JobEventResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_JobEventResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.JobEventResponse.class, io.dapr.v1.DaprAppCallbackProtos.JobEventResponse.Builder.class);
}
// Construct using io.dapr.v1.DaprAppCallbackProtos.JobEventResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_JobEventResponse_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.JobEventResponse getDefaultInstanceForType() {
return io.dapr.v1.DaprAppCallbackProtos.JobEventResponse.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.JobEventResponse build() {
io.dapr.v1.DaprAppCallbackProtos.JobEventResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.JobEventResponse buildPartial() {
io.dapr.v1.DaprAppCallbackProtos.JobEventResponse result = new io.dapr.v1.DaprAppCallbackProtos.JobEventResponse(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.dapr.v1.DaprAppCallbackProtos.JobEventResponse) {
return mergeFrom((io.dapr.v1.DaprAppCallbackProtos.JobEventResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprAppCallbackProtos.JobEventResponse other) {
if (other == io.dapr.v1.DaprAppCallbackProtos.JobEventResponse.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.dapr.v1.DaprAppCallbackProtos.JobEventResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprAppCallbackProtos.JobEventResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:dapr.proto.runtime.v1.JobEventResponse)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.JobEventResponse)
private static final io.dapr.v1.DaprAppCallbackProtos.JobEventResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprAppCallbackProtos.JobEventResponse();
}
public static io.dapr.v1.DaprAppCallbackProtos.JobEventResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public JobEventResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new JobEventResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.JobEventResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopicEventRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.TopicEventRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* id identifies the event. Producers MUST ensure that source + id
* is unique for each distinct event. If a duplicate event is re-sent
* (e.g. due to a network error) it MAY have the same id.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* id identifies the event. Producers MUST ensure that source + id
* is unique for each distinct event. If a duplicate event is re-sent
* (e.g. due to a network error) it MAY have the same id.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* source identifies the context in which an event happened.
* Often this will include information such as the type of the
* event source, the organization publishing the event or the process
* that produced the event. The exact syntax and semantics behind
* the data encoded in the URI is defined by the event producer.
*
* source identifies the context in which an event happened.
* Often this will include information such as the type of the
* event source, the organization publishing the event or the process
* that produced the event. The exact syntax and semantics behind
* the data encoded in the URI is defined by the event producer.
*
*
* string source = 2;
* @return The bytes for source.
*/
com.google.protobuf.ByteString
getSourceBytes();
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 3;
* @return The type.
*/
java.lang.String getType();
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 3;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
*
*
* string pubsub_name = 8;
* @return The bytes for pubsubName.
*/
com.google.protobuf.ByteString
getPubsubNameBytes();
/**
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
*
* string path = 9;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
/**
*
* The map of additional custom properties to be sent to the app. These are considered to be cloud event extensions.
*
*
* .google.protobuf.Struct extensions = 10;
* @return Whether the extensions field is set.
*/
boolean hasExtensions();
/**
*
* The map of additional custom properties to be sent to the app. These are considered to be cloud event extensions.
*
* TopicEventRequest message is compatible with CloudEvent spec v1.0
* https://github.com/cloudevents/spec/blob/v1.0/spec.md
*
*
* Protobuf type {@code dapr.proto.runtime.v1.TopicEventRequest}
*/
public static final class TopicEventRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.TopicEventRequest)
TopicEventRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopicEventRequest.newBuilder() to construct.
private TopicEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private TopicEventRequest() {
id_ = "";
source_ = "";
type_ = "";
specVersion_ = "";
dataContentType_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
topic_ = "";
pubsubName_ = "";
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TopicEventRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TopicEventRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
source_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
type_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
specVersion_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
dataContentType_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
topic_ = s;
break;
}
case 58: {
data_ = input.readBytes();
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
pubsubName_ = s;
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
case 82: {
com.google.protobuf.Struct.Builder subBuilder = null;
if (extensions_ != null) {
subBuilder = extensions_.toBuilder();
}
extensions_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(extensions_);
extensions_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest.class, io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* id identifies the event. Producers MUST ensure that source + id
* is unique for each distinct event. If a duplicate event is re-sent
* (e.g. due to a network error) it MAY have the same id.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* id identifies the event. Producers MUST ensure that source + id
* is unique for each distinct event. If a duplicate event is re-sent
* (e.g. due to a network error) it MAY have the same id.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_FIELD_NUMBER = 2;
private volatile java.lang.Object source_;
/**
*
* source identifies the context in which an event happened.
* Often this will include information such as the type of the
* event source, the organization publishing the event or the process
* that produced the event. The exact syntax and semantics behind
* the data encoded in the URI is defined by the event producer.
*
* source identifies the context in which an event happened.
* Often this will include information such as the type of the
* event source, the organization publishing the event or the process
* that produced the event. The exact syntax and semantics behind
* the data encoded in the URI is defined by the event producer.
*
*
* string source = 2;
* @return The bytes for source.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 3;
private volatile java.lang.Object type_;
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 3;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
}
}
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 3;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SPEC_VERSION_FIELD_NUMBER = 4;
private volatile java.lang.Object specVersion_;
/**
*
*
* string pubsub_name = 8;
* @return The bytes for pubsubName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPubsubNameBytes() {
java.lang.Object ref = pubsubName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pubsubName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATH_FIELD_NUMBER = 9;
private volatile java.lang.Object path_;
/**
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
*
* string path = 9;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXTENSIONS_FIELD_NUMBER = 10;
private com.google.protobuf.Struct extensions_;
/**
*
* The map of additional custom properties to be sent to the app. These are considered to be cloud event extensions.
*
*
* .google.protobuf.Struct extensions = 10;
* @return Whether the extensions field is set.
*/
@java.lang.Override
public boolean hasExtensions() {
return extensions_ != null;
}
/**
*
* The map of additional custom properties to be sent to the app. These are considered to be cloud event extensions.
*
* id identifies the event. Producers MUST ensure that source + id
* is unique for each distinct event. If a duplicate event is re-sent
* (e.g. due to a network error) it MAY have the same id.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* id identifies the event. Producers MUST ensure that source + id
* is unique for each distinct event. If a duplicate event is re-sent
* (e.g. due to a network error) it MAY have the same id.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* id identifies the event. Producers MUST ensure that source + id
* is unique for each distinct event. If a duplicate event is re-sent
* (e.g. due to a network error) it MAY have the same id.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* id identifies the event. Producers MUST ensure that source + id
* is unique for each distinct event. If a duplicate event is re-sent
* (e.g. due to a network error) it MAY have the same id.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* id identifies the event. Producers MUST ensure that source + id
* is unique for each distinct event. If a duplicate event is re-sent
* (e.g. due to a network error) it MAY have the same id.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object source_ = "";
/**
*
* source identifies the context in which an event happened.
* Often this will include information such as the type of the
* event source, the organization publishing the event or the process
* that produced the event. The exact syntax and semantics behind
* the data encoded in the URI is defined by the event producer.
*
* source identifies the context in which an event happened.
* Often this will include information such as the type of the
* event source, the organization publishing the event or the process
* that produced the event. The exact syntax and semantics behind
* the data encoded in the URI is defined by the event producer.
*
*
* string source = 2;
* @return The bytes for source.
*/
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* source identifies the context in which an event happened.
* Often this will include information such as the type of the
* event source, the organization publishing the event or the process
* that produced the event. The exact syntax and semantics behind
* the data encoded in the URI is defined by the event producer.
*
*
* string source = 2;
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
return this;
}
/**
*
* source identifies the context in which an event happened.
* Often this will include information such as the type of the
* event source, the organization publishing the event or the process
* that produced the event. The exact syntax and semantics behind
* the data encoded in the URI is defined by the event producer.
*
*
* string source = 2;
* @return This builder for chaining.
*/
public Builder clearSource() {
source_ = getDefaultInstance().getSource();
onChanged();
return this;
}
/**
*
* source identifies the context in which an event happened.
* Often this will include information such as the type of the
* event source, the organization publishing the event or the process
* that produced the event. The exact syntax and semantics behind
* the data encoded in the URI is defined by the event producer.
*
*
* string source = 2;
* @param value The bytes for source to set.
* @return This builder for chaining.
*/
public Builder setSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
source_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 3;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 3;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 3;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 3;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 3;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
private java.lang.Object specVersion_ = "";
/**
*
*
* string data_content_type = 5;
* @return The bytes for dataContentType.
*/
public com.google.protobuf.ByteString
getDataContentTypeBytes() {
java.lang.Object ref = dataContentType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataContentType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The content type of data value.
*
*
* string data_content_type = 5;
* @param value The dataContentType to set.
* @return This builder for chaining.
*/
public Builder setDataContentType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dataContentType_ = value;
onChanged();
return this;
}
/**
*
* The content type of data value.
*
*
* string data_content_type = 5;
* @return This builder for chaining.
*/
public Builder clearDataContentType() {
dataContentType_ = getDefaultInstance().getDataContentType();
onChanged();
return this;
}
/**
*
* The content type of data value.
*
*
* string data_content_type = 5;
* @param value The bytes for dataContentType to set.
* @return This builder for chaining.
*/
public Builder setDataContentTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dataContentType_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The content of the event.
*
*
* bytes data = 7;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* The content of the event.
*
*
* bytes data = 7;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* The content of the event.
*
*
* bytes data = 7;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private java.lang.Object topic_ = "";
/**
*
*
* string pubsub_name = 8;
* @return The bytes for pubsubName.
*/
public com.google.protobuf.ByteString
getPubsubNameBytes() {
java.lang.Object ref = pubsubName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pubsubName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the pubsub the publisher sent to.
*
*
* string pubsub_name = 8;
* @param value The pubsubName to set.
* @return This builder for chaining.
*/
public Builder setPubsubName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pubsubName_ = value;
onChanged();
return this;
}
/**
*
* The name of the pubsub the publisher sent to.
*
*
* string pubsub_name = 8;
* @return This builder for chaining.
*/
public Builder clearPubsubName() {
pubsubName_ = getDefaultInstance().getPubsubName();
onChanged();
return this;
}
/**
*
* The name of the pubsub the publisher sent to.
*
*
* string pubsub_name = 8;
* @param value The bytes for pubsubName to set.
* @return This builder for chaining.
*/
public Builder setPubsubNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pubsubName_ = value;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
*
* string path = 9;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
*
* string path = 9;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
*
* string path = 9;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
*
* string path = 9;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
onChanged();
return this;
}
private com.google.protobuf.Struct extensions_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> extensionsBuilder_;
/**
*
* The map of additional custom properties to be sent to the app. These are considered to be cloud event extensions.
*
*
* .google.protobuf.Struct extensions = 10;
* @return Whether the extensions field is set.
*/
public boolean hasExtensions() {
return extensionsBuilder_ != null || extensions_ != null;
}
/**
*
* The map of additional custom properties to be sent to the app. These are considered to be cloud event extensions.
*
* The map of additional custom properties to be sent to the app. These are considered to be cloud event extensions.
*
*
* .google.protobuf.Struct extensions = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getExtensionsFieldBuilder() {
if (extensionsBuilder_ == null) {
extensionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getExtensions(),
getParentForChildren(),
isClean());
extensions_ = null;
}
return extensionsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:dapr.proto.runtime.v1.TopicEventRequest)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.TopicEventRequest)
private static final io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest();
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopicEventRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TopicEventRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopicEventResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.TopicEventResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The list of output bindings.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
*
* The list of output bindings.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 1;
* @return The status.
*/
io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus getStatus();
}
/**
*
* TopicEventResponse is response from app on published message
*
*
* Protobuf type {@code dapr.proto.runtime.v1.TopicEventResponse}
*/
public static final class TopicEventResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.TopicEventResponse)
TopicEventResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopicEventResponse.newBuilder() to construct.
private TopicEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private TopicEventResponse() {
status_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TopicEventResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TopicEventResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.class, io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.Builder.class);
}
/**
*
* TopicEventResponseStatus allows apps to have finer control over handling of the message.
*
* SUCCESS is the default behavior: message is acknowledged and not retried or logged.
*
*
* SUCCESS = 0;
*/
public static final int SUCCESS_VALUE = 0;
/**
*
* RETRY status signals Dapr to retry the message as part of an expected scenario (no warning is logged).
*
*
* RETRY = 1;
*/
public static final int RETRY_VALUE = 1;
/**
*
* DROP status signals Dapr to drop the message as part of an unexpected scenario (warning is logged).
*
*
* DROP = 2;
*/
public static final int DROP_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TopicEventResponseStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static TopicEventResponseStatus forNumber(int value) {
switch (value) {
case 0: return SUCCESS;
case 1: return RETRY;
case 2: return DROP;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TopicEventResponseStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TopicEventResponseStatus findValueByNumber(int number) {
return TopicEventResponseStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.getDescriptor().getEnumTypes().get(0);
}
private static final TopicEventResponseStatus[] VALUES = values();
public static TopicEventResponseStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private TopicEventResponseStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus)
}
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
*
* The list of output bindings.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* The list of output bindings.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 1;
* @return The status.
*/
@java.lang.Override public io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus getStatus() {
@SuppressWarnings("deprecation")
io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus result = io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus.valueOf(status_);
return result == null ? io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (status_ != io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus.SUCCESS.getNumber()) {
output.writeEnum(1, status_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus.SUCCESS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse)) {
return super.equals(obj);
}
io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse other = (io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse) obj;
if (status_ != other.status_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* TopicEventResponse is response from app on published message
*
*
* Protobuf type {@code dapr.proto.runtime.v1.TopicEventResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.TopicEventResponse)
io.dapr.v1.DaprAppCallbackProtos.TopicEventResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.class, io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.Builder.class);
}
// Construct using io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
status_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventResponse_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse getDefaultInstanceForType() {
return io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse build() {
io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse buildPartial() {
io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse result = new io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse(this);
result.status_ = status_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse) {
return mergeFrom((io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse other) {
if (other == io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.getDefaultInstance()) return this;
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int status_ = 0;
/**
*
* The list of output bindings.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 1;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* The list of output bindings.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 1;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* The list of output bindings.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 1;
* @return The status.
*/
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus getStatus() {
@SuppressWarnings("deprecation")
io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus result = io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus.valueOf(status_);
return result == null ? io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus.UNRECOGNIZED : result;
}
/**
*
* The list of output bindings.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The list of output bindings.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:dapr.proto.runtime.v1.TopicEventResponse)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.TopicEventResponse)
private static final io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse();
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopicEventResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TopicEventResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopicEventCERequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.TopicEventCERequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The unique identifier of this cloud event.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* The unique identifier of this cloud event.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* source identifies the context in which an event happened.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The unique identifier of this cloud event.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The unique identifier of this cloud event.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* The unique identifier of this cloud event.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* The unique identifier of this cloud event.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object source_ = "";
/**
*
* source identifies the context in which an event happened.
*
* source identifies the context in which an event happened.
*
*
* string source = 2;
* @return The bytes for source.
*/
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* source identifies the context in which an event happened.
*
*
* string source = 2;
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
return this;
}
/**
*
* source identifies the context in which an event happened.
*
*
* string source = 2;
* @return This builder for chaining.
*/
public Builder clearSource() {
source_ = getDefaultInstance().getSource();
onChanged();
return this;
}
/**
*
* source identifies the context in which an event happened.
*
*
* string source = 2;
* @param value The bytes for source to set.
* @return This builder for chaining.
*/
public Builder setSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
source_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 3;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 3;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 3;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 3;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 3;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
private java.lang.Object specVersion_ = "";
/**
*
*
* string data_content_type = 5;
* @return The bytes for dataContentType.
*/
public com.google.protobuf.ByteString
getDataContentTypeBytes() {
java.lang.Object ref = dataContentType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataContentType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The content type of data value.
*
*
* string data_content_type = 5;
* @param value The dataContentType to set.
* @return This builder for chaining.
*/
public Builder setDataContentType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dataContentType_ = value;
onChanged();
return this;
}
/**
*
* The content type of data value.
*
*
* string data_content_type = 5;
* @return This builder for chaining.
*/
public Builder clearDataContentType() {
dataContentType_ = getDefaultInstance().getDataContentType();
onChanged();
return this;
}
/**
*
* The content type of data value.
*
*
* string data_content_type = 5;
* @param value The bytes for dataContentType to set.
* @return This builder for chaining.
*/
public Builder setDataContentTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dataContentType_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The content of the event.
*
*
* bytes data = 6;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* The content of the event.
*
*
* bytes data = 6;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* The content of the event.
*
*
* bytes data = 6;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private com.google.protobuf.Struct extensions_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> extensionsBuilder_;
/**
*
* Custom attributes which includes cloud event extensions.
*
*
* .google.protobuf.Struct extensions = 7;
* @return Whether the extensions field is set.
*/
public boolean hasExtensions() {
return extensionsBuilder_ != null || extensions_ != null;
}
/**
*
* Custom attributes which includes cloud event extensions.
*
*
* string pubsub_name = 5;
* @return The bytes for pubsubName.
*/
com.google.protobuf.ByteString
getPubsubNameBytes();
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 6;
* @return The type.
*/
java.lang.String getType();
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 6;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
*
* string path = 7;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
}
/**
*
* TopicEventBulkRequest represents request for bulk message
*
*
* Protobuf type {@code dapr.proto.runtime.v1.TopicEventBulkRequest}
*/
public static final class TopicEventBulkRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.TopicEventBulkRequest)
TopicEventBulkRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopicEventBulkRequest.newBuilder() to construct.
private TopicEventBulkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private TopicEventBulkRequest() {
id_ = "";
entries_ = java.util.Collections.emptyList();
topic_ = "";
pubsubName_ = "";
type_ = "";
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TopicEventBulkRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TopicEventBulkRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
entries_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
entries_.add(
input.readMessage(io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequestEntry.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
metadata__ = input.readMessage(
MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
metadata_.getMutableMap().put(
metadata__.getKey(), metadata__.getValue());
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
topic_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
pubsubName_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
type_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
entries_ = java.util.Collections.unmodifiableList(entries_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventBulkRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventBulkRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest.class, io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* Unique identifier for the bulk request.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* Unique identifier for the bulk request.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENTRIES_FIELD_NUMBER = 2;
private java.util.List entries_;
/**
*
*
* string pubsub_name = 5;
* @return The bytes for pubsubName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPubsubNameBytes() {
java.lang.Object ref = pubsubName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pubsubName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 6;
private volatile java.lang.Object type_;
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 6;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
}
}
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 6;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATH_FIELD_NUMBER = 7;
private volatile java.lang.Object path_;
/**
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
*
* string path = 7;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
for (int i = 0; i < entries_.size(); i++) {
output.writeMessage(2, entries_.get(i));
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMetadata(),
MetadataDefaultEntryHolder.defaultEntry,
3);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, topic_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pubsubName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, path_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
for (int i = 0; i < entries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, entries_.get(i));
}
for (java.util.Map.Entry entry
: internalGetMetadata().getMap().entrySet()) {
com.google.protobuf.MapEntry
metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, metadata__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, topic_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pubsubName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pubsubName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, path_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest)) {
return super.equals(obj);
}
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest other = (io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getEntriesList()
.equals(other.getEntriesList())) return false;
if (!internalGetMetadata().equals(
other.internalGetMetadata())) return false;
if (!getTopic()
.equals(other.getTopic())) return false;
if (!getPubsubName()
.equals(other.getPubsubName())) return false;
if (!getType()
.equals(other.getType())) return false;
if (!getPath()
.equals(other.getPath())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
if (getEntriesCount() > 0) {
hash = (37 * hash) + ENTRIES_FIELD_NUMBER;
hash = (53 * hash) + getEntriesList().hashCode();
}
if (!internalGetMetadata().getMap().isEmpty()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetadata().hashCode();
}
hash = (37 * hash) + TOPIC_FIELD_NUMBER;
hash = (53 * hash) + getTopic().hashCode();
hash = (37 * hash) + PUBSUB_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPubsubName().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* TopicEventBulkRequest represents request for bulk message
*
*
* Protobuf type {@code dapr.proto.runtime.v1.TopicEventBulkRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.TopicEventBulkRequest)
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventBulkRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 3:
return internalGetMutableMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventBulkRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest.class, io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest.Builder.class);
}
// Construct using io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEntriesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
if (entriesBuilder_ == null) {
entries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
entriesBuilder_.clear();
}
internalGetMutableMetadata().clear();
topic_ = "";
pubsubName_ = "";
type_ = "";
path_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventBulkRequest_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest getDefaultInstanceForType() {
return io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest build() {
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest buildPartial() {
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest result = new io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
if (entriesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
entries_ = java.util.Collections.unmodifiableList(entries_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entries_ = entries_;
} else {
result.entries_ = entriesBuilder_.build();
}
result.metadata_ = internalGetMetadata();
result.metadata_.makeImmutable();
result.topic_ = topic_;
result.pubsubName_ = pubsubName_;
result.type_ = type_;
result.path_ = path_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest) {
return mergeFrom((io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest other) {
if (other == io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (entriesBuilder_ == null) {
if (!other.entries_.isEmpty()) {
if (entries_.isEmpty()) {
entries_ = other.entries_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEntriesIsMutable();
entries_.addAll(other.entries_);
}
onChanged();
}
} else {
if (!other.entries_.isEmpty()) {
if (entriesBuilder_.isEmpty()) {
entriesBuilder_.dispose();
entriesBuilder_ = null;
entries_ = other.entries_;
bitField0_ = (bitField0_ & ~0x00000001);
entriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEntriesFieldBuilder() : null;
} else {
entriesBuilder_.addAllMessages(other.entries_);
}
}
}
internalGetMutableMetadata().mergeFrom(
other.internalGetMetadata());
if (!other.getTopic().isEmpty()) {
topic_ = other.topic_;
onChanged();
}
if (!other.getPubsubName().isEmpty()) {
pubsubName_ = other.pubsubName_;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
onChanged();
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* Unique identifier for the bulk request.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Unique identifier for the bulk request.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Unique identifier for the bulk request.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* Unique identifier for the bulk request.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* Unique identifier for the bulk request.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.util.List entries_ =
java.util.Collections.emptyList();
private void ensureEntriesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
entries_ = new java.util.ArrayList(entries_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequestEntry, io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequestEntry.Builder, io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequestEntryOrBuilder> entriesBuilder_;
/**
*
*
* string pubsub_name = 5;
* @return The bytes for pubsubName.
*/
public com.google.protobuf.ByteString
getPubsubNameBytes() {
java.lang.Object ref = pubsubName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pubsubName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the pubsub the publisher sent to.
*
*
* string pubsub_name = 5;
* @param value The pubsubName to set.
* @return This builder for chaining.
*/
public Builder setPubsubName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pubsubName_ = value;
onChanged();
return this;
}
/**
*
* The name of the pubsub the publisher sent to.
*
*
* string pubsub_name = 5;
* @return This builder for chaining.
*/
public Builder clearPubsubName() {
pubsubName_ = getDefaultInstance().getPubsubName();
onChanged();
return this;
}
/**
*
* The name of the pubsub the publisher sent to.
*
*
* string pubsub_name = 5;
* @param value The bytes for pubsubName to set.
* @return This builder for chaining.
*/
public Builder setPubsubNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pubsubName_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 6;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 6;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 6;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 6;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
* The type of event related to the originating occurrence.
*
*
* string type = 6;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
*
* string path = 7;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
*
* string path = 7;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
*
* string path = 7;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* The matching path from TopicSubscription/routes (if specified) for this event.
* This value is used by OnTopicEvent to "switch" inside the handler.
*
*
* string path = 7;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:dapr.proto.runtime.v1.TopicEventBulkRequest)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.TopicEventBulkRequest)
private static final io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest();
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopicEventBulkRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TopicEventBulkRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopicEventBulkResponseEntryOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.TopicEventBulkResponseEntry)
com.google.protobuf.MessageOrBuilder {
/**
*
*
* string entry_id = 1;
* @return The bytes for entryId.
*/
com.google.protobuf.ByteString
getEntryIdBytes();
/**
*
* The status of the response.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 2;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
*
* The status of the response.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 2;
* @return The status.
*/
io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus getStatus();
}
/**
*
* TopicEventBulkResponseEntry Represents single response, as part of TopicEventBulkResponse, to be
* sent by subscibed App for the corresponding single message during bulk subscribe
*
*
* Protobuf type {@code dapr.proto.runtime.v1.TopicEventBulkResponseEntry}
*/
public static final class TopicEventBulkResponseEntry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.TopicEventBulkResponseEntry)
TopicEventBulkResponseEntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopicEventBulkResponseEntry.newBuilder() to construct.
private TopicEventBulkResponseEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private TopicEventBulkResponseEntry() {
entryId_ = "";
status_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TopicEventBulkResponseEntry();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TopicEventBulkResponseEntry(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
entryId_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventBulkResponseEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventBulkResponseEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry.class, io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry.Builder.class);
}
public static final int ENTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object entryId_;
/**
*
*
* string entry_id = 1;
* @return The bytes for entryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEntryIdBytes() {
java.lang.Object ref = entryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
entryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 2;
private int status_;
/**
*
* The status of the response.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 2;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* The status of the response.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 2;
* @return The status.
*/
@java.lang.Override public io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus getStatus() {
@SuppressWarnings("deprecation")
io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus result = io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus.valueOf(status_);
return result == null ? io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entryId_);
}
if (status_ != io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus.SUCCESS.getNumber()) {
output.writeEnum(2, status_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entryId_);
}
if (status_ != io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus.SUCCESS.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, status_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry)) {
return super.equals(obj);
}
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry other = (io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry) obj;
if (!getEntryId()
.equals(other.getEntryId())) return false;
if (status_ != other.status_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ENTRY_ID_FIELD_NUMBER;
hash = (53 * hash) + getEntryId().hashCode();
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* TopicEventBulkResponseEntry Represents single response, as part of TopicEventBulkResponse, to be
* sent by subscibed App for the corresponding single message during bulk subscribe
*
*
* Protobuf type {@code dapr.proto.runtime.v1.TopicEventBulkResponseEntry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.TopicEventBulkResponseEntry)
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventBulkResponseEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventBulkResponseEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry.class, io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry.Builder.class);
}
// Construct using io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
entryId_ = "";
status_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicEventBulkResponseEntry_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry getDefaultInstanceForType() {
return io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry build() {
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry buildPartial() {
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry result = new io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry(this);
result.entryId_ = entryId_;
result.status_ = status_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry) {
return mergeFrom((io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry other) {
if (other == io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry.getDefaultInstance()) return this;
if (!other.getEntryId().isEmpty()) {
entryId_ = other.entryId_;
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object entryId_ = "";
/**
*
*
* string entry_id = 1;
* @return The bytes for entryId.
*/
public com.google.protobuf.ByteString
getEntryIdBytes() {
java.lang.Object ref = entryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
entryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Unique identifier associated the message.
*
*
* string entry_id = 1;
* @param value The entryId to set.
* @return This builder for chaining.
*/
public Builder setEntryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
entryId_ = value;
onChanged();
return this;
}
/**
*
* Unique identifier associated the message.
*
*
* string entry_id = 1;
* @return This builder for chaining.
*/
public Builder clearEntryId() {
entryId_ = getDefaultInstance().getEntryId();
onChanged();
return this;
}
/**
*
* Unique identifier associated the message.
*
*
* string entry_id = 1;
* @param value The bytes for entryId to set.
* @return This builder for chaining.
*/
public Builder setEntryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
entryId_ = value;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* The status of the response.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 2;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* The status of the response.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 2;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
onChanged();
return this;
}
/**
*
* The status of the response.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 2;
* @return The status.
*/
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus getStatus() {
@SuppressWarnings("deprecation")
io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus result = io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus.valueOf(status_);
return result == null ? io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus.UNRECOGNIZED : result;
}
/**
*
* The status of the response.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 2;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(io.dapr.v1.DaprAppCallbackProtos.TopicEventResponse.TopicEventResponseStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The status of the response.
*
*
* .dapr.proto.runtime.v1.TopicEventResponse.TopicEventResponseStatus status = 2;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:dapr.proto.runtime.v1.TopicEventBulkResponseEntry)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.TopicEventBulkResponseEntry)
private static final io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry();
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopicEventBulkResponseEntry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TopicEventBulkResponseEntry(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicEventBulkResponseEntry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopicEventBulkResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.TopicEventBulkResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The list of all responses for the bulk request.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.BindingEventRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.BindingEventRequest)
io.dapr.v1.DaprAppCallbackProtos.BindingEventRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_BindingEventRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 3:
return internalGetMutableMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_BindingEventRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest.class, io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest.Builder.class);
}
// Construct using io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
internalGetMutableMetadata().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_BindingEventRequest_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest getDefaultInstanceForType() {
return io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest build() {
io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest buildPartial() {
io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest result = new io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
result.data_ = data_;
result.metadata_ = internalGetMetadata();
result.metadata_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest) {
return mergeFrom((io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest other) {
if (other == io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
internalGetMutableMetadata().mergeFrom(
other.internalGetMetadata());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Required. The name of the input binding component.
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. The name of the input binding component.
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. The name of the input binding component.
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Required. The name of the input binding component.
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Required. The name of the input binding component.
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* Required. The payload that the input bindings sent
*
*
* bytes data = 2;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* Required. The payload that the input bindings sent
*
*
* bytes data = 2;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* Required. The payload that the input bindings sent
*
*
* bytes data = 2;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
private com.google.protobuf.MapField
internalGetMutableMetadata() {
onChanged();;
if (metadata_ == null) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
if (!metadata_.isMutable()) {
metadata_ = metadata_.copy();
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
*
* The metadata set by the input binging components.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata set by the input binging components.
*
* The state key values which will be stored in store_name.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
io.dapr.v1.CommonProtos.StateItemOrBuilder getStatesOrBuilder(
int index);
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @return A list containing the to.
*/
java.util.List
getToList();
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @return The count of to.
*/
int getToCount();
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @param index The index of the element to return.
* @return The to at the given index.
*/
java.lang.String getTo(int index);
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @param index The index of the value to return.
* @return The bytes of the to at the given index.
*/
com.google.protobuf.ByteString
getToBytes(int index);
/**
*
* The content which will be sent to "to" output bindings.
*
*
* bytes data = 4;
* @return The data.
*/
com.google.protobuf.ByteString getData();
/**
*
* The concurrency of output bindings to send data to
* "to" output bindings list. The default is SEQUENTIAL.
*
*
* .dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5;
* @return The enum numeric value on the wire for concurrency.
*/
int getConcurrencyValue();
/**
*
* The concurrency of output bindings to send data to
* "to" output bindings list. The default is SEQUENTIAL.
*
* SEQUENTIAL sends data to output bindings specified in "to" sequentially.
*
*
* SEQUENTIAL = 0;
*/
public static final int SEQUENTIAL_VALUE = 0;
/**
*
* PARALLEL sends data to output bindings specified in "to" in parallel.
*
*
* PARALLEL = 1;
*/
public static final int PARALLEL_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static BindingEventConcurrency valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static BindingEventConcurrency forNumber(int value) {
switch (value) {
case 0: return SEQUENTIAL;
case 1: return PARALLEL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
BindingEventConcurrency> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public BindingEventConcurrency findValueByNumber(int number) {
return BindingEventConcurrency.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse.getDescriptor().getEnumTypes().get(0);
}
private static final BindingEventConcurrency[] VALUES = values();
public static BindingEventConcurrency valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private BindingEventConcurrency(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency)
}
public static final int STORE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object storeName_;
/**
*
* The name of state store where states are saved.
*
* The name of state store where states are saved.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStoreNameBytes() {
java.lang.Object ref = storeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATES_FIELD_NUMBER = 2;
private java.util.List states_;
/**
*
* The state key values which will be stored in store_name.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public java.util.List getStatesList() {
return states_;
}
/**
*
* The state key values which will be stored in store_name.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public java.util.List
getStatesOrBuilderList() {
return states_;
}
/**
*
* The state key values which will be stored in store_name.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public int getStatesCount() {
return states_.size();
}
/**
*
* The state key values which will be stored in store_name.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public io.dapr.v1.CommonProtos.StateItem getStates(int index) {
return states_.get(index);
}
/**
*
* The state key values which will be stored in store_name.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public io.dapr.v1.CommonProtos.StateItemOrBuilder getStatesOrBuilder(
int index) {
return states_.get(index);
}
public static final int TO_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList to_;
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @return A list containing the to.
*/
public com.google.protobuf.ProtocolStringList
getToList() {
return to_;
}
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @return The count of to.
*/
public int getToCount() {
return to_.size();
}
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @param index The index of the element to return.
* @return The to at the given index.
*/
public java.lang.String getTo(int index) {
return to_.get(index);
}
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @param index The index of the value to return.
* @return The bytes of the to at the given index.
*/
public com.google.protobuf.ByteString
getToBytes(int index) {
return to_.getByteString(index);
}
public static final int DATA_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString data_;
/**
*
* The content which will be sent to "to" output bindings.
*
*
* bytes data = 4;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int CONCURRENCY_FIELD_NUMBER = 5;
private int concurrency_;
/**
*
* The concurrency of output bindings to send data to
* "to" output bindings list. The default is SEQUENTIAL.
*
*
* .dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5;
* @return The enum numeric value on the wire for concurrency.
*/
@java.lang.Override public int getConcurrencyValue() {
return concurrency_;
}
/**
*
* The concurrency of output bindings to send data to
* "to" output bindings list. The default is SEQUENTIAL.
*
*
* .dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5;
* @return The concurrency.
*/
@java.lang.Override public io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse.BindingEventConcurrency getConcurrency() {
@SuppressWarnings("deprecation")
io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse.BindingEventConcurrency result = io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse.BindingEventConcurrency.valueOf(concurrency_);
return result == null ? io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse.BindingEventConcurrency.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storeName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storeName_);
}
for (int i = 0; i < states_.size(); i++) {
output.writeMessage(2, states_.get(i));
}
for (int i = 0; i < to_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, to_.getRaw(i));
}
if (!data_.isEmpty()) {
output.writeBytes(4, data_);
}
if (concurrency_ != io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse.BindingEventConcurrency.SEQUENTIAL.getNumber()) {
output.writeEnum(5, concurrency_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storeName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storeName_);
}
for (int i = 0; i < states_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, states_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < to_.size(); i++) {
dataSize += computeStringSizeNoTag(to_.getRaw(i));
}
size += dataSize;
size += 1 * getToList().size();
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, data_);
}
if (concurrency_ != io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse.BindingEventConcurrency.SEQUENTIAL.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, concurrency_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse)) {
return super.equals(obj);
}
io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse other = (io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse) obj;
if (!getStoreName()
.equals(other.getStoreName())) return false;
if (!getStatesList()
.equals(other.getStatesList())) return false;
if (!getToList()
.equals(other.getToList())) return false;
if (!getData()
.equals(other.getData())) return false;
if (concurrency_ != other.concurrency_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + STORE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getStoreName().hashCode();
if (getStatesCount() > 0) {
hash = (37 * hash) + STATES_FIELD_NUMBER;
hash = (53 * hash) + getStatesList().hashCode();
}
if (getToCount() > 0) {
hash = (37 * hash) + TO_FIELD_NUMBER;
hash = (53 * hash) + getToList().hashCode();
}
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + CONCURRENCY_FIELD_NUMBER;
hash = (53 * hash) + concurrency_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* BindingEventResponse includes operations to save state or
* send data to output bindings optionally.
*
*
* repeated string to = 3;
* @return A list containing the to.
*/
public com.google.protobuf.ProtocolStringList
getToList() {
return to_.getUnmodifiableView();
}
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @return The count of to.
*/
public int getToCount() {
return to_.size();
}
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @param index The index of the element to return.
* @return The to at the given index.
*/
public java.lang.String getTo(int index) {
return to_.get(index);
}
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @param index The index of the value to return.
* @return The bytes of the to at the given index.
*/
public com.google.protobuf.ByteString
getToBytes(int index) {
return to_.getByteString(index);
}
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @param index The index to set the value at.
* @param value The to to set.
* @return This builder for chaining.
*/
public Builder setTo(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureToIsMutable();
to_.set(index, value);
onChanged();
return this;
}
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @param value The to to add.
* @return This builder for chaining.
*/
public Builder addTo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureToIsMutable();
to_.add(value);
onChanged();
return this;
}
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @param values The to to add.
* @return This builder for chaining.
*/
public Builder addAllTo(
java.lang.Iterable values) {
ensureToIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, to_);
onChanged();
return this;
}
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @return This builder for chaining.
*/
public Builder clearTo() {
to_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The list of output bindings.
*
*
* repeated string to = 3;
* @param value The bytes of the to to add.
* @return This builder for chaining.
*/
public Builder addToBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureToIsMutable();
to_.add(value);
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The content which will be sent to "to" output bindings.
*
*
* bytes data = 4;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* The content which will be sent to "to" output bindings.
*
*
* bytes data = 4;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* The content which will be sent to "to" output bindings.
*
*
* bytes data = 4;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private int concurrency_ = 0;
/**
*
* The concurrency of output bindings to send data to
* "to" output bindings list. The default is SEQUENTIAL.
*
*
* .dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5;
* @return The enum numeric value on the wire for concurrency.
*/
@java.lang.Override public int getConcurrencyValue() {
return concurrency_;
}
/**
*
* The concurrency of output bindings to send data to
* "to" output bindings list. The default is SEQUENTIAL.
*
*
* .dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5;
* @param value The enum numeric value on the wire for concurrency to set.
* @return This builder for chaining.
*/
public Builder setConcurrencyValue(int value) {
concurrency_ = value;
onChanged();
return this;
}
/**
*
* The concurrency of output bindings to send data to
* "to" output bindings list. The default is SEQUENTIAL.
*
*
* .dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5;
* @return The concurrency.
*/
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse.BindingEventConcurrency getConcurrency() {
@SuppressWarnings("deprecation")
io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse.BindingEventConcurrency result = io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse.BindingEventConcurrency.valueOf(concurrency_);
return result == null ? io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse.BindingEventConcurrency.UNRECOGNIZED : result;
}
/**
*
* The concurrency of output bindings to send data to
* "to" output bindings list. The default is SEQUENTIAL.
*
*
* .dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5;
* @param value The concurrency to set.
* @return This builder for chaining.
*/
public Builder setConcurrency(io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse.BindingEventConcurrency value) {
if (value == null) {
throw new NullPointerException();
}
concurrency_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The concurrency of output bindings to send data to
* "to" output bindings list. The default is SEQUENTIAL.
*
*
* .dapr.proto.runtime.v1.BindingEventResponse.BindingEventConcurrency concurrency = 5;
* @return This builder for chaining.
*/
public Builder clearConcurrency() {
concurrency_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:dapr.proto.runtime.v1.BindingEventResponse)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.BindingEventResponse)
private static final io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse();
}
public static io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BindingEventResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BindingEventResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListTopicSubscriptionsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.ListTopicSubscriptionsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
*
* .dapr.proto.runtime.v1.TopicRoutes routes = 5;
* @return Whether the routes field is set.
*/
boolean hasRoutes();
/**
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
* The optional properties used for this topic's subscription e.g. session id
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ROUTES_FIELD_NUMBER = 5;
private io.dapr.v1.DaprAppCallbackProtos.TopicRoutes routes_;
/**
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
*
* .dapr.proto.runtime.v1.TopicRoutes routes = 5;
* @return Whether the routes field is set.
*/
@java.lang.Override
public boolean hasRoutes() {
return routes_ != null;
}
/**
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
*
* .dapr.proto.runtime.v1.TopicRoutes routes = 5;
*/
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicRoutesOrBuilder getRoutesOrBuilder() {
return getRoutes();
}
public static final int DEAD_LETTER_TOPIC_FIELD_NUMBER = 6;
private volatile java.lang.Object deadLetterTopic_;
/**
*
* The optional dead letter queue for this topic to send events to.
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
*
* .dapr.proto.runtime.v1.TopicRoutes routes = 5;
* @return Whether the routes field is set.
*/
public boolean hasRoutes() {
return routesBuilder_ != null || routes_ != null;
}
/**
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
*
* .dapr.proto.runtime.v1.TopicRoutes routes = 5;
*/
public Builder setRoutes(io.dapr.v1.DaprAppCallbackProtos.TopicRoutes value) {
if (routesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
routes_ = value;
onChanged();
} else {
routesBuilder_.setMessage(value);
}
return this;
}
/**
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
* The optional routing rules to match against. In the gRPC interface, OnTopicEvent
* is still invoked but the matching path is sent in the TopicEventRequest.
*
*
* string default = 2;
* @return The bytes for default.
*/
public com.google.protobuf.ByteString
getDefaultBytes() {
java.lang.Object ref = default_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
default_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The default path for this topic.
*
*
* string default = 2;
* @param value The default to set.
* @return This builder for chaining.
*/
public Builder setDefault(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
default_ = value;
onChanged();
return this;
}
/**
*
* The default path for this topic.
*
*
* string default = 2;
* @return This builder for chaining.
*/
public Builder clearDefault() {
default_ = getDefaultInstance().getDefault();
onChanged();
return this;
}
/**
*
* The default path for this topic.
*
*
* string default = 2;
* @param value The bytes for default to set.
* @return This builder for chaining.
*/
public Builder setDefaultBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
default_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:dapr.proto.runtime.v1.TopicRoutes)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.TopicRoutes)
private static final io.dapr.v1.DaprAppCallbackProtos.TopicRoutes DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprAppCallbackProtos.TopicRoutes();
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicRoutes getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopicRoutes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TopicRoutes(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicRoutes getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopicRuleOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.TopicRule)
com.google.protobuf.MessageOrBuilder {
/**
*
* The optional CEL expression used to match the event.
* If the match is not specified, then the route is considered
* the default.
*
*
* string match = 1;
* @return The match.
*/
java.lang.String getMatch();
/**
*
* The optional CEL expression used to match the event.
* If the match is not specified, then the route is considered
* the default.
*
*
* string match = 1;
* @return The bytes for match.
*/
com.google.protobuf.ByteString
getMatchBytes();
/**
*
* The path used to identify matches for this subscription.
* This value is passed in TopicEventRequest and used by OnTopicEvent to "switch"
* inside the handler.
*
* The path used to identify matches for this subscription.
* This value is passed in TopicEventRequest and used by OnTopicEvent to "switch"
* inside the handler.
*
*
* string path = 2;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
}
/**
* Protobuf type {@code dapr.proto.runtime.v1.TopicRule}
*/
public static final class TopicRule extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.TopicRule)
TopicRuleOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopicRule.newBuilder() to construct.
private TopicRule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private TopicRule() {
match_ = "";
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TopicRule();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TopicRule(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
match_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.TopicRule.class, io.dapr.v1.DaprAppCallbackProtos.TopicRule.Builder.class);
}
public static final int MATCH_FIELD_NUMBER = 1;
private volatile java.lang.Object match_;
/**
*
* The optional CEL expression used to match the event.
* If the match is not specified, then the route is considered
* the default.
*
*
* string match = 1;
* @return The match.
*/
@java.lang.Override
public java.lang.String getMatch() {
java.lang.Object ref = match_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
match_ = s;
return s;
}
}
/**
*
* The optional CEL expression used to match the event.
* If the match is not specified, then the route is considered
* the default.
*
*
* string match = 1;
* @return The bytes for match.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMatchBytes() {
java.lang.Object ref = match_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
match_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object path_;
/**
*
* The path used to identify matches for this subscription.
* This value is passed in TopicEventRequest and used by OnTopicEvent to "switch"
* inside the handler.
*
* The path used to identify matches for this subscription.
* This value is passed in TopicEventRequest and used by OnTopicEvent to "switch"
* inside the handler.
*
*
* string path = 2;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(match_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, match_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(match_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, match_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.dapr.v1.DaprAppCallbackProtos.TopicRule)) {
return super.equals(obj);
}
io.dapr.v1.DaprAppCallbackProtos.TopicRule other = (io.dapr.v1.DaprAppCallbackProtos.TopicRule) obj;
if (!getMatch()
.equals(other.getMatch())) return false;
if (!getPath()
.equals(other.getPath())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MATCH_FIELD_NUMBER;
hash = (53 * hash) + getMatch().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicRule parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicRule parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicRule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicRule parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicRule parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicRule parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicRule parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicRule parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicRule parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicRule parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicRule parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicRule parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.dapr.v1.DaprAppCallbackProtos.TopicRule prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code dapr.proto.runtime.v1.TopicRule}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.TopicRule)
io.dapr.v1.DaprAppCallbackProtos.TopicRuleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.TopicRule.class, io.dapr.v1.DaprAppCallbackProtos.TopicRule.Builder.class);
}
// Construct using io.dapr.v1.DaprAppCallbackProtos.TopicRule.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
match_ = "";
path_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_TopicRule_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicRule getDefaultInstanceForType() {
return io.dapr.v1.DaprAppCallbackProtos.TopicRule.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicRule build() {
io.dapr.v1.DaprAppCallbackProtos.TopicRule result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicRule buildPartial() {
io.dapr.v1.DaprAppCallbackProtos.TopicRule result = new io.dapr.v1.DaprAppCallbackProtos.TopicRule(this);
result.match_ = match_;
result.path_ = path_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.dapr.v1.DaprAppCallbackProtos.TopicRule) {
return mergeFrom((io.dapr.v1.DaprAppCallbackProtos.TopicRule)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprAppCallbackProtos.TopicRule other) {
if (other == io.dapr.v1.DaprAppCallbackProtos.TopicRule.getDefaultInstance()) return this;
if (!other.getMatch().isEmpty()) {
match_ = other.match_;
onChanged();
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.dapr.v1.DaprAppCallbackProtos.TopicRule parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprAppCallbackProtos.TopicRule) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object match_ = "";
/**
*
* The optional CEL expression used to match the event.
* If the match is not specified, then the route is considered
* the default.
*
*
* string match = 1;
* @return The match.
*/
public java.lang.String getMatch() {
java.lang.Object ref = match_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
match_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The optional CEL expression used to match the event.
* If the match is not specified, then the route is considered
* the default.
*
*
* string match = 1;
* @return The bytes for match.
*/
public com.google.protobuf.ByteString
getMatchBytes() {
java.lang.Object ref = match_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
match_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The optional CEL expression used to match the event.
* If the match is not specified, then the route is considered
* the default.
*
*
* string match = 1;
* @param value The match to set.
* @return This builder for chaining.
*/
public Builder setMatch(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
match_ = value;
onChanged();
return this;
}
/**
*
* The optional CEL expression used to match the event.
* If the match is not specified, then the route is considered
* the default.
*
*
* string match = 1;
* @return This builder for chaining.
*/
public Builder clearMatch() {
match_ = getDefaultInstance().getMatch();
onChanged();
return this;
}
/**
*
* The optional CEL expression used to match the event.
* If the match is not specified, then the route is considered
* the default.
*
*
* string match = 1;
* @param value The bytes for match to set.
* @return This builder for chaining.
*/
public Builder setMatchBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
match_ = value;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
*
* The path used to identify matches for this subscription.
* This value is passed in TopicEventRequest and used by OnTopicEvent to "switch"
* inside the handler.
*
* The path used to identify matches for this subscription.
* This value is passed in TopicEventRequest and used by OnTopicEvent to "switch"
* inside the handler.
*
*
* string path = 2;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The path used to identify matches for this subscription.
* This value is passed in TopicEventRequest and used by OnTopicEvent to "switch"
* inside the handler.
*
*
* string path = 2;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
*
* The path used to identify matches for this subscription.
* This value is passed in TopicEventRequest and used by OnTopicEvent to "switch"
* inside the handler.
*
*
* string path = 2;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* The path used to identify matches for this subscription.
* This value is passed in TopicEventRequest and used by OnTopicEvent to "switch"
* inside the handler.
*
*
* string path = 2;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:dapr.proto.runtime.v1.TopicRule)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.TopicRule)
private static final io.dapr.v1.DaprAppCallbackProtos.TopicRule DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprAppCallbackProtos.TopicRule();
}
public static io.dapr.v1.DaprAppCallbackProtos.TopicRule getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopicRule parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TopicRule(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.TopicRule getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BulkSubscribeConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.BulkSubscribeConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required. Flag to enable/disable bulk subscribe
*
* Optional. Max number of messages to be sent in a single bulk request
*
*
* int32 max_messages_count = 2;
* @return The maxMessagesCount.
*/
int getMaxMessagesCount();
/**
*
* Optional. Max duration to wait for messages to be sent in a single bulk request
*
*
* int32 max_await_duration_ms = 3;
* @return The maxAwaitDurationMs.
*/
int getMaxAwaitDurationMs();
}
/**
*
* BulkSubscribeConfig is the message to pass settings for bulk subscribe
*
*
* Protobuf type {@code dapr.proto.runtime.v1.BulkSubscribeConfig}
*/
public static final class BulkSubscribeConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.BulkSubscribeConfig)
BulkSubscribeConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use BulkSubscribeConfig.newBuilder() to construct.
private BulkSubscribeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private BulkSubscribeConfig() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BulkSubscribeConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BulkSubscribeConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
enabled_ = input.readBool();
break;
}
case 16: {
maxMessagesCount_ = input.readInt32();
break;
}
case 24: {
maxAwaitDurationMs_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_BulkSubscribeConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_BulkSubscribeConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.BulkSubscribeConfig.class, io.dapr.v1.DaprAppCallbackProtos.BulkSubscribeConfig.Builder.class);
}
public static final int ENABLED_FIELD_NUMBER = 1;
private boolean enabled_;
/**
*
* Required. Flag to enable/disable bulk subscribe
*
*
* bool enabled = 1;
* @return The enabled.
*/
@java.lang.Override
public boolean getEnabled() {
return enabled_;
}
public static final int MAX_MESSAGES_COUNT_FIELD_NUMBER = 2;
private int maxMessagesCount_;
/**
*
* Optional. Max number of messages to be sent in a single bulk request
*
*
* int32 max_messages_count = 2;
* @return The maxMessagesCount.
*/
@java.lang.Override
public int getMaxMessagesCount() {
return maxMessagesCount_;
}
public static final int MAX_AWAIT_DURATION_MS_FIELD_NUMBER = 3;
private int maxAwaitDurationMs_;
/**
*
* Optional. Max duration to wait for messages to be sent in a single bulk request
*
* Required. Flag to enable/disable bulk subscribe
*
*
* bool enabled = 1;
* @param value The enabled to set.
* @return This builder for chaining.
*/
public Builder setEnabled(boolean value) {
enabled_ = value;
onChanged();
return this;
}
/**
*
* Required. Flag to enable/disable bulk subscribe
*
*
* bool enabled = 1;
* @return This builder for chaining.
*/
public Builder clearEnabled() {
enabled_ = false;
onChanged();
return this;
}
private int maxMessagesCount_ ;
/**
*
* Optional. Max number of messages to be sent in a single bulk request
*
*
* int32 max_messages_count = 2;
* @return The maxMessagesCount.
*/
@java.lang.Override
public int getMaxMessagesCount() {
return maxMessagesCount_;
}
/**
*
* Optional. Max number of messages to be sent in a single bulk request
*
*
* int32 max_messages_count = 2;
* @param value The maxMessagesCount to set.
* @return This builder for chaining.
*/
public Builder setMaxMessagesCount(int value) {
maxMessagesCount_ = value;
onChanged();
return this;
}
/**
*
* Optional. Max number of messages to be sent in a single bulk request
*
*
* int32 max_messages_count = 2;
* @return This builder for chaining.
*/
public Builder clearMaxMessagesCount() {
maxMessagesCount_ = 0;
onChanged();
return this;
}
private int maxAwaitDurationMs_ ;
/**
*
* Optional. Max duration to wait for messages to be sent in a single bulk request
*
*
* int32 max_await_duration_ms = 3;
* @return The maxAwaitDurationMs.
*/
@java.lang.Override
public int getMaxAwaitDurationMs() {
return maxAwaitDurationMs_;
}
/**
*
* Optional. Max duration to wait for messages to be sent in a single bulk request
*
*
* int32 max_await_duration_ms = 3;
* @param value The maxAwaitDurationMs to set.
* @return This builder for chaining.
*/
public Builder setMaxAwaitDurationMs(int value) {
maxAwaitDurationMs_ = value;
onChanged();
return this;
}
/**
*
* Optional. Max duration to wait for messages to be sent in a single bulk request
*
*
* int32 max_await_duration_ms = 3;
* @return This builder for chaining.
*/
public Builder clearMaxAwaitDurationMs() {
maxAwaitDurationMs_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:dapr.proto.runtime.v1.BulkSubscribeConfig)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.BulkSubscribeConfig)
private static final io.dapr.v1.DaprAppCallbackProtos.BulkSubscribeConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprAppCallbackProtos.BulkSubscribeConfig();
}
public static io.dapr.v1.DaprAppCallbackProtos.BulkSubscribeConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BulkSubscribeConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BulkSubscribeConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.BulkSubscribeConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListInputBindingsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.ListInputBindingsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @return A list containing the bindings.
*/
java.util.List
getBindingsList();
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @return The count of bindings.
*/
int getBindingsCount();
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @param index The index of the element to return.
* @return The bindings at the given index.
*/
java.lang.String getBindings(int index);
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @param index The index of the value to return.
* @return The bytes of the bindings at the given index.
*/
com.google.protobuf.ByteString
getBindingsBytes(int index);
}
/**
*
* ListInputBindingsResponse is the message including the list of input bindings.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.ListInputBindingsResponse}
*/
public static final class ListInputBindingsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.ListInputBindingsResponse)
ListInputBindingsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListInputBindingsResponse.newBuilder() to construct.
private ListInputBindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ListInputBindingsResponse() {
bindings_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListInputBindingsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListInputBindingsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
bindings_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
bindings_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
bindings_ = bindings_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_ListInputBindingsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_ListInputBindingsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse.class, io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse.Builder.class);
}
public static final int BINDINGS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList bindings_;
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @return A list containing the bindings.
*/
public com.google.protobuf.ProtocolStringList
getBindingsList() {
return bindings_;
}
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @return The count of bindings.
*/
public int getBindingsCount() {
return bindings_.size();
}
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @param index The index of the element to return.
* @return The bindings at the given index.
*/
public java.lang.String getBindings(int index) {
return bindings_.get(index);
}
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @param index The index of the value to return.
* @return The bytes of the bindings at the given index.
*/
public com.google.protobuf.ByteString
getBindingsBytes(int index) {
return bindings_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < bindings_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bindings_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < bindings_.size(); i++) {
dataSize += computeStringSizeNoTag(bindings_.getRaw(i));
}
size += dataSize;
size += 1 * getBindingsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse)) {
return super.equals(obj);
}
io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse other = (io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse) obj;
if (!getBindingsList()
.equals(other.getBindingsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getBindingsCount() > 0) {
hash = (37 * hash) + BINDINGS_FIELD_NUMBER;
hash = (53 * hash) + getBindingsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ListInputBindingsResponse is the message including the list of input bindings.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.ListInputBindingsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.ListInputBindingsResponse)
io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_ListInputBindingsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_ListInputBindingsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse.class, io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse.Builder.class);
}
// Construct using io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bindings_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprAppCallbackProtos.internal_static_dapr_proto_runtime_v1_ListInputBindingsResponse_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse getDefaultInstanceForType() {
return io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse build() {
io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse buildPartial() {
io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse result = new io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
bindings_ = bindings_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.bindings_ = bindings_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse) {
return mergeFrom((io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse other) {
if (other == io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse.getDefaultInstance()) return this;
if (!other.bindings_.isEmpty()) {
if (bindings_.isEmpty()) {
bindings_ = other.bindings_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBindingsIsMutable();
bindings_.addAll(other.bindings_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList bindings_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureBindingsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
bindings_ = new com.google.protobuf.LazyStringArrayList(bindings_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @return A list containing the bindings.
*/
public com.google.protobuf.ProtocolStringList
getBindingsList() {
return bindings_.getUnmodifiableView();
}
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @return The count of bindings.
*/
public int getBindingsCount() {
return bindings_.size();
}
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @param index The index of the element to return.
* @return The bindings at the given index.
*/
public java.lang.String getBindings(int index) {
return bindings_.get(index);
}
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @param index The index of the value to return.
* @return The bytes of the bindings at the given index.
*/
public com.google.protobuf.ByteString
getBindingsBytes(int index) {
return bindings_.getByteString(index);
}
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @param index The index to set the value at.
* @param value The bindings to set.
* @return This builder for chaining.
*/
public Builder setBindings(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureBindingsIsMutable();
bindings_.set(index, value);
onChanged();
return this;
}
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @param value The bindings to add.
* @return This builder for chaining.
*/
public Builder addBindings(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureBindingsIsMutable();
bindings_.add(value);
onChanged();
return this;
}
/**
*
* The list of input bindings.
*
*
* repeated string bindings = 1;
* @param values The bindings to add.
* @return This builder for chaining.
*/
public Builder addAllBindings(
java.lang.Iterable values) {
ensureBindingsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, bindings_);
onChanged();
return this;
}
/**
*