grpc.webhook._ListWebhooksResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-protos Show documentation
Show all versions of client-protos Show documentation
Java protobuf protocols that define the Momento gRPC wire format
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: webhook.proto
package grpc.webhook;
/**
* Protobuf type {@code webhook._ListWebhooksResponse}
*/
public final class _ListWebhooksResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:webhook._ListWebhooksResponse)
_ListWebhooksResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use _ListWebhooksResponse.newBuilder() to construct.
private _ListWebhooksResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private _ListWebhooksResponse() {
webhook_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new _ListWebhooksResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.webhook.WebhookOuterClass.internal_static_webhook__ListWebhooksResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.webhook.WebhookOuterClass.internal_static_webhook__ListWebhooksResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.webhook._ListWebhooksResponse.class, grpc.webhook._ListWebhooksResponse.Builder.class);
}
public static final int WEBHOOK_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List webhook_;
/**
* repeated .webhook._Webhook webhook = 1;
*/
@java.lang.Override
public java.util.List getWebhookList() {
return webhook_;
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
@java.lang.Override
public java.util.List extends grpc.webhook._WebhookOrBuilder>
getWebhookOrBuilderList() {
return webhook_;
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
@java.lang.Override
public int getWebhookCount() {
return webhook_.size();
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
@java.lang.Override
public grpc.webhook._Webhook getWebhook(int index) {
return webhook_.get(index);
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
@java.lang.Override
public grpc.webhook._WebhookOrBuilder getWebhookOrBuilder(
int index) {
return webhook_.get(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 < webhook_.size(); i++) {
output.writeMessage(1, webhook_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < webhook_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, webhook_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof grpc.webhook._ListWebhooksResponse)) {
return super.equals(obj);
}
grpc.webhook._ListWebhooksResponse other = (grpc.webhook._ListWebhooksResponse) obj;
if (!getWebhookList()
.equals(other.getWebhookList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getWebhookCount() > 0) {
hash = (37 * hash) + WEBHOOK_FIELD_NUMBER;
hash = (53 * hash) + getWebhookList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.webhook._ListWebhooksResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.webhook._ListWebhooksResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.webhook._ListWebhooksResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.webhook._ListWebhooksResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.webhook._ListWebhooksResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.webhook._ListWebhooksResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.webhook._ListWebhooksResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.webhook._ListWebhooksResponse 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 grpc.webhook._ListWebhooksResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.webhook._ListWebhooksResponse 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 grpc.webhook._ListWebhooksResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.webhook._ListWebhooksResponse 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(grpc.webhook._ListWebhooksResponse 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 webhook._ListWebhooksResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:webhook._ListWebhooksResponse)
grpc.webhook._ListWebhooksResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.webhook.WebhookOuterClass.internal_static_webhook__ListWebhooksResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.webhook.WebhookOuterClass.internal_static_webhook__ListWebhooksResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.webhook._ListWebhooksResponse.class, grpc.webhook._ListWebhooksResponse.Builder.class);
}
// Construct using grpc.webhook._ListWebhooksResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (webhookBuilder_ == null) {
webhook_ = java.util.Collections.emptyList();
} else {
webhook_ = null;
webhookBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.webhook.WebhookOuterClass.internal_static_webhook__ListWebhooksResponse_descriptor;
}
@java.lang.Override
public grpc.webhook._ListWebhooksResponse getDefaultInstanceForType() {
return grpc.webhook._ListWebhooksResponse.getDefaultInstance();
}
@java.lang.Override
public grpc.webhook._ListWebhooksResponse build() {
grpc.webhook._ListWebhooksResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.webhook._ListWebhooksResponse buildPartial() {
grpc.webhook._ListWebhooksResponse result = new grpc.webhook._ListWebhooksResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(grpc.webhook._ListWebhooksResponse result) {
if (webhookBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
webhook_ = java.util.Collections.unmodifiableList(webhook_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.webhook_ = webhook_;
} else {
result.webhook_ = webhookBuilder_.build();
}
}
private void buildPartial0(grpc.webhook._ListWebhooksResponse result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.webhook._ListWebhooksResponse) {
return mergeFrom((grpc.webhook._ListWebhooksResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.webhook._ListWebhooksResponse other) {
if (other == grpc.webhook._ListWebhooksResponse.getDefaultInstance()) return this;
if (webhookBuilder_ == null) {
if (!other.webhook_.isEmpty()) {
if (webhook_.isEmpty()) {
webhook_ = other.webhook_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureWebhookIsMutable();
webhook_.addAll(other.webhook_);
}
onChanged();
}
} else {
if (!other.webhook_.isEmpty()) {
if (webhookBuilder_.isEmpty()) {
webhookBuilder_.dispose();
webhookBuilder_ = null;
webhook_ = other.webhook_;
bitField0_ = (bitField0_ & ~0x00000001);
webhookBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getWebhookFieldBuilder() : null;
} else {
webhookBuilder_.addAllMessages(other.webhook_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
grpc.webhook._Webhook m =
input.readMessage(
grpc.webhook._Webhook.parser(),
extensionRegistry);
if (webhookBuilder_ == null) {
ensureWebhookIsMutable();
webhook_.add(m);
} else {
webhookBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List webhook_ =
java.util.Collections.emptyList();
private void ensureWebhookIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
webhook_ = new java.util.ArrayList(webhook_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
grpc.webhook._Webhook, grpc.webhook._Webhook.Builder, grpc.webhook._WebhookOrBuilder> webhookBuilder_;
/**
* repeated .webhook._Webhook webhook = 1;
*/
public java.util.List getWebhookList() {
if (webhookBuilder_ == null) {
return java.util.Collections.unmodifiableList(webhook_);
} else {
return webhookBuilder_.getMessageList();
}
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public int getWebhookCount() {
if (webhookBuilder_ == null) {
return webhook_.size();
} else {
return webhookBuilder_.getCount();
}
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public grpc.webhook._Webhook getWebhook(int index) {
if (webhookBuilder_ == null) {
return webhook_.get(index);
} else {
return webhookBuilder_.getMessage(index);
}
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public Builder setWebhook(
int index, grpc.webhook._Webhook value) {
if (webhookBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWebhookIsMutable();
webhook_.set(index, value);
onChanged();
} else {
webhookBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public Builder setWebhook(
int index, grpc.webhook._Webhook.Builder builderForValue) {
if (webhookBuilder_ == null) {
ensureWebhookIsMutable();
webhook_.set(index, builderForValue.build());
onChanged();
} else {
webhookBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public Builder addWebhook(grpc.webhook._Webhook value) {
if (webhookBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWebhookIsMutable();
webhook_.add(value);
onChanged();
} else {
webhookBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public Builder addWebhook(
int index, grpc.webhook._Webhook value) {
if (webhookBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureWebhookIsMutable();
webhook_.add(index, value);
onChanged();
} else {
webhookBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public Builder addWebhook(
grpc.webhook._Webhook.Builder builderForValue) {
if (webhookBuilder_ == null) {
ensureWebhookIsMutable();
webhook_.add(builderForValue.build());
onChanged();
} else {
webhookBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public Builder addWebhook(
int index, grpc.webhook._Webhook.Builder builderForValue) {
if (webhookBuilder_ == null) {
ensureWebhookIsMutable();
webhook_.add(index, builderForValue.build());
onChanged();
} else {
webhookBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public Builder addAllWebhook(
java.lang.Iterable extends grpc.webhook._Webhook> values) {
if (webhookBuilder_ == null) {
ensureWebhookIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, webhook_);
onChanged();
} else {
webhookBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public Builder clearWebhook() {
if (webhookBuilder_ == null) {
webhook_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
webhookBuilder_.clear();
}
return this;
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public Builder removeWebhook(int index) {
if (webhookBuilder_ == null) {
ensureWebhookIsMutable();
webhook_.remove(index);
onChanged();
} else {
webhookBuilder_.remove(index);
}
return this;
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public grpc.webhook._Webhook.Builder getWebhookBuilder(
int index) {
return getWebhookFieldBuilder().getBuilder(index);
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public grpc.webhook._WebhookOrBuilder getWebhookOrBuilder(
int index) {
if (webhookBuilder_ == null) {
return webhook_.get(index); } else {
return webhookBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public java.util.List extends grpc.webhook._WebhookOrBuilder>
getWebhookOrBuilderList() {
if (webhookBuilder_ != null) {
return webhookBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(webhook_);
}
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public grpc.webhook._Webhook.Builder addWebhookBuilder() {
return getWebhookFieldBuilder().addBuilder(
grpc.webhook._Webhook.getDefaultInstance());
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public grpc.webhook._Webhook.Builder addWebhookBuilder(
int index) {
return getWebhookFieldBuilder().addBuilder(
index, grpc.webhook._Webhook.getDefaultInstance());
}
/**
* repeated .webhook._Webhook webhook = 1;
*/
public java.util.List
getWebhookBuilderList() {
return getWebhookFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
grpc.webhook._Webhook, grpc.webhook._Webhook.Builder, grpc.webhook._WebhookOrBuilder>
getWebhookFieldBuilder() {
if (webhookBuilder_ == null) {
webhookBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
grpc.webhook._Webhook, grpc.webhook._Webhook.Builder, grpc.webhook._WebhookOrBuilder>(
webhook_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
webhook_ = null;
}
return webhookBuilder_;
}
@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:webhook._ListWebhooksResponse)
}
// @@protoc_insertion_point(class_scope:webhook._ListWebhooksResponse)
private static final grpc.webhook._ListWebhooksResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.webhook._ListWebhooksResponse();
}
public static grpc.webhook._ListWebhooksResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<_ListWebhooksResponse>
PARSER = new com.google.protobuf.AbstractParser<_ListWebhooksResponse>() {
@java.lang.Override
public _ListWebhooksResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser<_ListWebhooksResponse> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<_ListWebhooksResponse> getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.webhook._ListWebhooksResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}