All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webhook.WebhookOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: webhook.proto

package webhook;

public final class WebhookOuterClass {
  private WebhookOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface _WebhookIdOrBuilder extends
      // @@protoc_insertion_point(interface_extends:webhook._WebhookId)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string cache_name = 1;
     * @return The cacheName.
     */
    java.lang.String getCacheName();
    /**
     * string cache_name = 1;
     * @return The bytes for cacheName.
     */
    com.google.protobuf.ByteString
        getCacheNameBytes();

    /**
     * 
     * This is limited to 128 chars.
     * 
* * string webhook_name = 2; * @return The webhookName. */ java.lang.String getWebhookName(); /** *
     * This is limited to 128 chars.
     * 
* * string webhook_name = 2; * @return The bytes for webhookName. */ com.google.protobuf.ByteString getWebhookNameBytes(); } /** * Protobuf type {@code webhook._WebhookId} */ public static final class _WebhookId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:webhook._WebhookId) _WebhookIdOrBuilder { private static final long serialVersionUID = 0L; // Use _WebhookId.newBuilder() to construct. private _WebhookId(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _WebhookId() { cacheName_ = ""; webhookName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _WebhookId(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__WebhookId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__WebhookId_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._WebhookId.class, webhook.WebhookOuterClass._WebhookId.Builder.class); } public static final int CACHE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object cacheName_ = ""; /** * string cache_name = 1; * @return The cacheName. */ @java.lang.Override public java.lang.String getCacheName() { java.lang.Object ref = cacheName_; 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(); cacheName_ = s; return s; } } /** * string cache_name = 1; * @return The bytes for cacheName. */ @java.lang.Override public com.google.protobuf.ByteString getCacheNameBytes() { java.lang.Object ref = cacheName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cacheName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WEBHOOK_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object webhookName_ = ""; /** *
     * This is limited to 128 chars.
     * 
* * string webhook_name = 2; * @return The webhookName. */ @java.lang.Override public java.lang.String getWebhookName() { java.lang.Object ref = webhookName_; 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(); webhookName_ = s; return s; } } /** *
     * This is limited to 128 chars.
     * 
* * string webhook_name = 2; * @return The bytes for webhookName. */ @java.lang.Override public com.google.protobuf.ByteString getWebhookNameBytes() { java.lang.Object ref = webhookName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); webhookName_ = 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(cacheName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cacheName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, webhookName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cacheName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cacheName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, webhookName_); } 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 webhook.WebhookOuterClass._WebhookId)) { return super.equals(obj); } webhook.WebhookOuterClass._WebhookId other = (webhook.WebhookOuterClass._WebhookId) obj; if (!getCacheName() .equals(other.getCacheName())) return false; if (!getWebhookName() .equals(other.getWebhookName())) 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(); hash = (37 * hash) + CACHE_NAME_FIELD_NUMBER; hash = (53 * hash) + getCacheName().hashCode(); hash = (37 * hash) + WEBHOOK_NAME_FIELD_NUMBER; hash = (53 * hash) + getWebhookName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static webhook.WebhookOuterClass._WebhookId parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._WebhookId parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._WebhookId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._WebhookId parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._WebhookId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._WebhookId parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._WebhookId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._WebhookId 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 webhook.WebhookOuterClass._WebhookId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._WebhookId 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 webhook.WebhookOuterClass._WebhookId parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._WebhookId 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(webhook.WebhookOuterClass._WebhookId 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._WebhookId} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:webhook._WebhookId) webhook.WebhookOuterClass._WebhookIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__WebhookId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__WebhookId_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._WebhookId.class, webhook.WebhookOuterClass._WebhookId.Builder.class); } // Construct using webhook.WebhookOuterClass._WebhookId.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cacheName_ = ""; webhookName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return webhook.WebhookOuterClass.internal_static_webhook__WebhookId_descriptor; } @java.lang.Override public webhook.WebhookOuterClass._WebhookId getDefaultInstanceForType() { return webhook.WebhookOuterClass._WebhookId.getDefaultInstance(); } @java.lang.Override public webhook.WebhookOuterClass._WebhookId build() { webhook.WebhookOuterClass._WebhookId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public webhook.WebhookOuterClass._WebhookId buildPartial() { webhook.WebhookOuterClass._WebhookId result = new webhook.WebhookOuterClass._WebhookId(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(webhook.WebhookOuterClass._WebhookId result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.cacheName_ = cacheName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.webhookName_ = webhookName_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof webhook.WebhookOuterClass._WebhookId) { return mergeFrom((webhook.WebhookOuterClass._WebhookId)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(webhook.WebhookOuterClass._WebhookId other) { if (other == webhook.WebhookOuterClass._WebhookId.getDefaultInstance()) return this; if (!other.getCacheName().isEmpty()) { cacheName_ = other.cacheName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getWebhookName().isEmpty()) { webhookName_ = other.webhookName_; bitField0_ |= 0x00000002; onChanged(); } 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: { cacheName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { webhookName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 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.lang.Object cacheName_ = ""; /** * string cache_name = 1; * @return The cacheName. */ public java.lang.String getCacheName() { java.lang.Object ref = cacheName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cacheName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cache_name = 1; * @return The bytes for cacheName. */ public com.google.protobuf.ByteString getCacheNameBytes() { java.lang.Object ref = cacheName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cacheName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cache_name = 1; * @param value The cacheName to set. * @return This builder for chaining. */ public Builder setCacheName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cacheName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string cache_name = 1; * @return This builder for chaining. */ public Builder clearCacheName() { cacheName_ = getDefaultInstance().getCacheName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string cache_name = 1; * @param value The bytes for cacheName to set. * @return This builder for chaining. */ public Builder setCacheNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cacheName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object webhookName_ = ""; /** *
       * This is limited to 128 chars.
       * 
* * string webhook_name = 2; * @return The webhookName. */ public java.lang.String getWebhookName() { java.lang.Object ref = webhookName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); webhookName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * This is limited to 128 chars.
       * 
* * string webhook_name = 2; * @return The bytes for webhookName. */ public com.google.protobuf.ByteString getWebhookNameBytes() { java.lang.Object ref = webhookName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); webhookName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * This is limited to 128 chars.
       * 
* * string webhook_name = 2; * @param value The webhookName to set. * @return This builder for chaining. */ public Builder setWebhookName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } webhookName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * This is limited to 128 chars.
       * 
* * string webhook_name = 2; * @return This builder for chaining. */ public Builder clearWebhookName() { webhookName_ = getDefaultInstance().getWebhookName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * This is limited to 128 chars.
       * 
* * string webhook_name = 2; * @param value The bytes for webhookName to set. * @return This builder for chaining. */ public Builder setWebhookNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); webhookName_ = value; bitField0_ |= 0x00000002; 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:webhook._WebhookId) } // @@protoc_insertion_point(class_scope:webhook._WebhookId) private static final webhook.WebhookOuterClass._WebhookId DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new webhook.WebhookOuterClass._WebhookId(); } public static webhook.WebhookOuterClass._WebhookId getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_WebhookId> PARSER = new com.google.protobuf.AbstractParser<_WebhookId>() { @java.lang.Override public _WebhookId 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<_WebhookId> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_WebhookId> getParserForType() { return PARSER; } @java.lang.Override public webhook.WebhookOuterClass._WebhookId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface _WebhookOrBuilder extends // @@protoc_insertion_point(interface_extends:webhook._Webhook) com.google.protobuf.MessageOrBuilder { /** * .webhook._WebhookId webhook_id = 1; * @return Whether the webhookId field is set. */ boolean hasWebhookId(); /** * .webhook._WebhookId webhook_id = 1; * @return The webhookId. */ webhook.WebhookOuterClass._WebhookId getWebhookId(); /** * .webhook._WebhookId webhook_id = 1; */ webhook.WebhookOuterClass._WebhookIdOrBuilder getWebhookIdOrBuilder(); /** * string topic_name = 2; * @return The topicName. */ java.lang.String getTopicName(); /** * string topic_name = 2; * @return The bytes for topicName. */ com.google.protobuf.ByteString getTopicNameBytes(); /** * .webhook._WebhookDestination destination = 3; * @return Whether the destination field is set. */ boolean hasDestination(); /** * .webhook._WebhookDestination destination = 3; * @return The destination. */ webhook.WebhookOuterClass._WebhookDestination getDestination(); /** * .webhook._WebhookDestination destination = 3; */ webhook.WebhookOuterClass._WebhookDestinationOrBuilder getDestinationOrBuilder(); } /** * Protobuf type {@code webhook._Webhook} */ public static final class _Webhook extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:webhook._Webhook) _WebhookOrBuilder { private static final long serialVersionUID = 0L; // Use _Webhook.newBuilder() to construct. private _Webhook(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _Webhook() { topicName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _Webhook(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__Webhook_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__Webhook_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._Webhook.class, webhook.WebhookOuterClass._Webhook.Builder.class); } public static final int WEBHOOK_ID_FIELD_NUMBER = 1; private webhook.WebhookOuterClass._WebhookId webhookId_; /** * .webhook._WebhookId webhook_id = 1; * @return Whether the webhookId field is set. */ @java.lang.Override public boolean hasWebhookId() { return webhookId_ != null; } /** * .webhook._WebhookId webhook_id = 1; * @return The webhookId. */ @java.lang.Override public webhook.WebhookOuterClass._WebhookId getWebhookId() { return webhookId_ == null ? webhook.WebhookOuterClass._WebhookId.getDefaultInstance() : webhookId_; } /** * .webhook._WebhookId webhook_id = 1; */ @java.lang.Override public webhook.WebhookOuterClass._WebhookIdOrBuilder getWebhookIdOrBuilder() { return webhookId_ == null ? webhook.WebhookOuterClass._WebhookId.getDefaultInstance() : webhookId_; } public static final int TOPIC_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object topicName_ = ""; /** * string topic_name = 2; * @return The topicName. */ @java.lang.Override public java.lang.String getTopicName() { java.lang.Object ref = topicName_; 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(); topicName_ = s; return s; } } /** * string topic_name = 2; * @return The bytes for topicName. */ @java.lang.Override public com.google.protobuf.ByteString getTopicNameBytes() { java.lang.Object ref = topicName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); topicName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESTINATION_FIELD_NUMBER = 3; private webhook.WebhookOuterClass._WebhookDestination destination_; /** * .webhook._WebhookDestination destination = 3; * @return Whether the destination field is set. */ @java.lang.Override public boolean hasDestination() { return destination_ != null; } /** * .webhook._WebhookDestination destination = 3; * @return The destination. */ @java.lang.Override public webhook.WebhookOuterClass._WebhookDestination getDestination() { return destination_ == null ? webhook.WebhookOuterClass._WebhookDestination.getDefaultInstance() : destination_; } /** * .webhook._WebhookDestination destination = 3; */ @java.lang.Override public webhook.WebhookOuterClass._WebhookDestinationOrBuilder getDestinationOrBuilder() { return destination_ == null ? webhook.WebhookOuterClass._WebhookDestination.getDefaultInstance() : destination_; } 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 (webhookId_ != null) { output.writeMessage(1, getWebhookId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topicName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topicName_); } if (destination_ != null) { output.writeMessage(3, getDestination()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (webhookId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getWebhookId()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topicName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topicName_); } if (destination_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDestination()); } 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 webhook.WebhookOuterClass._Webhook)) { return super.equals(obj); } webhook.WebhookOuterClass._Webhook other = (webhook.WebhookOuterClass._Webhook) obj; if (hasWebhookId() != other.hasWebhookId()) return false; if (hasWebhookId()) { if (!getWebhookId() .equals(other.getWebhookId())) return false; } if (!getTopicName() .equals(other.getTopicName())) return false; if (hasDestination() != other.hasDestination()) return false; if (hasDestination()) { if (!getDestination() .equals(other.getDestination())) 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 (hasWebhookId()) { hash = (37 * hash) + WEBHOOK_ID_FIELD_NUMBER; hash = (53 * hash) + getWebhookId().hashCode(); } hash = (37 * hash) + TOPIC_NAME_FIELD_NUMBER; hash = (53 * hash) + getTopicName().hashCode(); if (hasDestination()) { hash = (37 * hash) + DESTINATION_FIELD_NUMBER; hash = (53 * hash) + getDestination().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static webhook.WebhookOuterClass._Webhook parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._Webhook parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._Webhook parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._Webhook parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._Webhook parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._Webhook parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._Webhook parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._Webhook 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 webhook.WebhookOuterClass._Webhook parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._Webhook 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 webhook.WebhookOuterClass._Webhook parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._Webhook 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(webhook.WebhookOuterClass._Webhook 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._Webhook} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:webhook._Webhook) webhook.WebhookOuterClass._WebhookOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__Webhook_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__Webhook_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._Webhook.class, webhook.WebhookOuterClass._Webhook.Builder.class); } // Construct using webhook.WebhookOuterClass._Webhook.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; webhookId_ = null; if (webhookIdBuilder_ != null) { webhookIdBuilder_.dispose(); webhookIdBuilder_ = null; } topicName_ = ""; destination_ = null; if (destinationBuilder_ != null) { destinationBuilder_.dispose(); destinationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return webhook.WebhookOuterClass.internal_static_webhook__Webhook_descriptor; } @java.lang.Override public webhook.WebhookOuterClass._Webhook getDefaultInstanceForType() { return webhook.WebhookOuterClass._Webhook.getDefaultInstance(); } @java.lang.Override public webhook.WebhookOuterClass._Webhook build() { webhook.WebhookOuterClass._Webhook result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public webhook.WebhookOuterClass._Webhook buildPartial() { webhook.WebhookOuterClass._Webhook result = new webhook.WebhookOuterClass._Webhook(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(webhook.WebhookOuterClass._Webhook result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.webhookId_ = webhookIdBuilder_ == null ? webhookId_ : webhookIdBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.topicName_ = topicName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.destination_ = destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof webhook.WebhookOuterClass._Webhook) { return mergeFrom((webhook.WebhookOuterClass._Webhook)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(webhook.WebhookOuterClass._Webhook other) { if (other == webhook.WebhookOuterClass._Webhook.getDefaultInstance()) return this; if (other.hasWebhookId()) { mergeWebhookId(other.getWebhookId()); } if (!other.getTopicName().isEmpty()) { topicName_ = other.topicName_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasDestination()) { mergeDestination(other.getDestination()); } 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: { input.readMessage( getWebhookIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { topicName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getDestinationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 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 webhook.WebhookOuterClass._WebhookId webhookId_; private com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._WebhookId, webhook.WebhookOuterClass._WebhookId.Builder, webhook.WebhookOuterClass._WebhookIdOrBuilder> webhookIdBuilder_; /** * .webhook._WebhookId webhook_id = 1; * @return Whether the webhookId field is set. */ public boolean hasWebhookId() { return ((bitField0_ & 0x00000001) != 0); } /** * .webhook._WebhookId webhook_id = 1; * @return The webhookId. */ public webhook.WebhookOuterClass._WebhookId getWebhookId() { if (webhookIdBuilder_ == null) { return webhookId_ == null ? webhook.WebhookOuterClass._WebhookId.getDefaultInstance() : webhookId_; } else { return webhookIdBuilder_.getMessage(); } } /** * .webhook._WebhookId webhook_id = 1; */ public Builder setWebhookId(webhook.WebhookOuterClass._WebhookId value) { if (webhookIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } webhookId_ = value; } else { webhookIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .webhook._WebhookId webhook_id = 1; */ public Builder setWebhookId( webhook.WebhookOuterClass._WebhookId.Builder builderForValue) { if (webhookIdBuilder_ == null) { webhookId_ = builderForValue.build(); } else { webhookIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .webhook._WebhookId webhook_id = 1; */ public Builder mergeWebhookId(webhook.WebhookOuterClass._WebhookId value) { if (webhookIdBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && webhookId_ != null && webhookId_ != webhook.WebhookOuterClass._WebhookId.getDefaultInstance()) { getWebhookIdBuilder().mergeFrom(value); } else { webhookId_ = value; } } else { webhookIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .webhook._WebhookId webhook_id = 1; */ public Builder clearWebhookId() { bitField0_ = (bitField0_ & ~0x00000001); webhookId_ = null; if (webhookIdBuilder_ != null) { webhookIdBuilder_.dispose(); webhookIdBuilder_ = null; } onChanged(); return this; } /** * .webhook._WebhookId webhook_id = 1; */ public webhook.WebhookOuterClass._WebhookId.Builder getWebhookIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWebhookIdFieldBuilder().getBuilder(); } /** * .webhook._WebhookId webhook_id = 1; */ public webhook.WebhookOuterClass._WebhookIdOrBuilder getWebhookIdOrBuilder() { if (webhookIdBuilder_ != null) { return webhookIdBuilder_.getMessageOrBuilder(); } else { return webhookId_ == null ? webhook.WebhookOuterClass._WebhookId.getDefaultInstance() : webhookId_; } } /** * .webhook._WebhookId webhook_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._WebhookId, webhook.WebhookOuterClass._WebhookId.Builder, webhook.WebhookOuterClass._WebhookIdOrBuilder> getWebhookIdFieldBuilder() { if (webhookIdBuilder_ == null) { webhookIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._WebhookId, webhook.WebhookOuterClass._WebhookId.Builder, webhook.WebhookOuterClass._WebhookIdOrBuilder>( getWebhookId(), getParentForChildren(), isClean()); webhookId_ = null; } return webhookIdBuilder_; } private java.lang.Object topicName_ = ""; /** * string topic_name = 2; * @return The topicName. */ public java.lang.String getTopicName() { java.lang.Object ref = topicName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topicName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string topic_name = 2; * @return The bytes for topicName. */ public com.google.protobuf.ByteString getTopicNameBytes() { java.lang.Object ref = topicName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); topicName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string topic_name = 2; * @param value The topicName to set. * @return This builder for chaining. */ public Builder setTopicName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } topicName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string topic_name = 2; * @return This builder for chaining. */ public Builder clearTopicName() { topicName_ = getDefaultInstance().getTopicName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string topic_name = 2; * @param value The bytes for topicName to set. * @return This builder for chaining. */ public Builder setTopicNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topicName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private webhook.WebhookOuterClass._WebhookDestination destination_; private com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._WebhookDestination, webhook.WebhookOuterClass._WebhookDestination.Builder, webhook.WebhookOuterClass._WebhookDestinationOrBuilder> destinationBuilder_; /** * .webhook._WebhookDestination destination = 3; * @return Whether the destination field is set. */ public boolean hasDestination() { return ((bitField0_ & 0x00000004) != 0); } /** * .webhook._WebhookDestination destination = 3; * @return The destination. */ public webhook.WebhookOuterClass._WebhookDestination getDestination() { if (destinationBuilder_ == null) { return destination_ == null ? webhook.WebhookOuterClass._WebhookDestination.getDefaultInstance() : destination_; } else { return destinationBuilder_.getMessage(); } } /** * .webhook._WebhookDestination destination = 3; */ public Builder setDestination(webhook.WebhookOuterClass._WebhookDestination value) { if (destinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } destination_ = value; } else { destinationBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .webhook._WebhookDestination destination = 3; */ public Builder setDestination( webhook.WebhookOuterClass._WebhookDestination.Builder builderForValue) { if (destinationBuilder_ == null) { destination_ = builderForValue.build(); } else { destinationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .webhook._WebhookDestination destination = 3; */ public Builder mergeDestination(webhook.WebhookOuterClass._WebhookDestination value) { if (destinationBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && destination_ != null && destination_ != webhook.WebhookOuterClass._WebhookDestination.getDefaultInstance()) { getDestinationBuilder().mergeFrom(value); } else { destination_ = value; } } else { destinationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .webhook._WebhookDestination destination = 3; */ public Builder clearDestination() { bitField0_ = (bitField0_ & ~0x00000004); destination_ = null; if (destinationBuilder_ != null) { destinationBuilder_.dispose(); destinationBuilder_ = null; } onChanged(); return this; } /** * .webhook._WebhookDestination destination = 3; */ public webhook.WebhookOuterClass._WebhookDestination.Builder getDestinationBuilder() { bitField0_ |= 0x00000004; onChanged(); return getDestinationFieldBuilder().getBuilder(); } /** * .webhook._WebhookDestination destination = 3; */ public webhook.WebhookOuterClass._WebhookDestinationOrBuilder getDestinationOrBuilder() { if (destinationBuilder_ != null) { return destinationBuilder_.getMessageOrBuilder(); } else { return destination_ == null ? webhook.WebhookOuterClass._WebhookDestination.getDefaultInstance() : destination_; } } /** * .webhook._WebhookDestination destination = 3; */ private com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._WebhookDestination, webhook.WebhookOuterClass._WebhookDestination.Builder, webhook.WebhookOuterClass._WebhookDestinationOrBuilder> getDestinationFieldBuilder() { if (destinationBuilder_ == null) { destinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._WebhookDestination, webhook.WebhookOuterClass._WebhookDestination.Builder, webhook.WebhookOuterClass._WebhookDestinationOrBuilder>( getDestination(), getParentForChildren(), isClean()); destination_ = null; } return destinationBuilder_; } @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._Webhook) } // @@protoc_insertion_point(class_scope:webhook._Webhook) private static final webhook.WebhookOuterClass._Webhook DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new webhook.WebhookOuterClass._Webhook(); } public static webhook.WebhookOuterClass._Webhook getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_Webhook> PARSER = new com.google.protobuf.AbstractParser<_Webhook>() { @java.lang.Override public _Webhook 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<_Webhook> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_Webhook> getParserForType() { return PARSER; } @java.lang.Override public webhook.WebhookOuterClass._Webhook getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface _PutWebhookRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:webhook._PutWebhookRequest) com.google.protobuf.MessageOrBuilder { /** * .webhook._Webhook webhook = 1; * @return Whether the webhook field is set. */ boolean hasWebhook(); /** * .webhook._Webhook webhook = 1; * @return The webhook. */ webhook.WebhookOuterClass._Webhook getWebhook(); /** * .webhook._Webhook webhook = 1; */ webhook.WebhookOuterClass._WebhookOrBuilder getWebhookOrBuilder(); } /** * Protobuf type {@code webhook._PutWebhookRequest} */ public static final class _PutWebhookRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:webhook._PutWebhookRequest) _PutWebhookRequestOrBuilder { private static final long serialVersionUID = 0L; // Use _PutWebhookRequest.newBuilder() to construct. private _PutWebhookRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _PutWebhookRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _PutWebhookRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__PutWebhookRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__PutWebhookRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._PutWebhookRequest.class, webhook.WebhookOuterClass._PutWebhookRequest.Builder.class); } public static final int WEBHOOK_FIELD_NUMBER = 1; private webhook.WebhookOuterClass._Webhook webhook_; /** * .webhook._Webhook webhook = 1; * @return Whether the webhook field is set. */ @java.lang.Override public boolean hasWebhook() { return webhook_ != null; } /** * .webhook._Webhook webhook = 1; * @return The webhook. */ @java.lang.Override public webhook.WebhookOuterClass._Webhook getWebhook() { return webhook_ == null ? webhook.WebhookOuterClass._Webhook.getDefaultInstance() : webhook_; } /** * .webhook._Webhook webhook = 1; */ @java.lang.Override public webhook.WebhookOuterClass._WebhookOrBuilder getWebhookOrBuilder() { return webhook_ == null ? webhook.WebhookOuterClass._Webhook.getDefaultInstance() : webhook_; } 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 (webhook_ != null) { output.writeMessage(1, getWebhook()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (webhook_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getWebhook()); } 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 webhook.WebhookOuterClass._PutWebhookRequest)) { return super.equals(obj); } webhook.WebhookOuterClass._PutWebhookRequest other = (webhook.WebhookOuterClass._PutWebhookRequest) obj; if (hasWebhook() != other.hasWebhook()) return false; if (hasWebhook()) { if (!getWebhook() .equals(other.getWebhook())) 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 (hasWebhook()) { hash = (37 * hash) + WEBHOOK_FIELD_NUMBER; hash = (53 * hash) + getWebhook().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static webhook.WebhookOuterClass._PutWebhookRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._PutWebhookRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._PutWebhookRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._PutWebhookRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._PutWebhookRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._PutWebhookRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._PutWebhookRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._PutWebhookRequest 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 webhook.WebhookOuterClass._PutWebhookRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._PutWebhookRequest 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 webhook.WebhookOuterClass._PutWebhookRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._PutWebhookRequest 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(webhook.WebhookOuterClass._PutWebhookRequest 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._PutWebhookRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:webhook._PutWebhookRequest) webhook.WebhookOuterClass._PutWebhookRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__PutWebhookRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__PutWebhookRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._PutWebhookRequest.class, webhook.WebhookOuterClass._PutWebhookRequest.Builder.class); } // Construct using webhook.WebhookOuterClass._PutWebhookRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; webhook_ = null; if (webhookBuilder_ != null) { webhookBuilder_.dispose(); webhookBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return webhook.WebhookOuterClass.internal_static_webhook__PutWebhookRequest_descriptor; } @java.lang.Override public webhook.WebhookOuterClass._PutWebhookRequest getDefaultInstanceForType() { return webhook.WebhookOuterClass._PutWebhookRequest.getDefaultInstance(); } @java.lang.Override public webhook.WebhookOuterClass._PutWebhookRequest build() { webhook.WebhookOuterClass._PutWebhookRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public webhook.WebhookOuterClass._PutWebhookRequest buildPartial() { webhook.WebhookOuterClass._PutWebhookRequest result = new webhook.WebhookOuterClass._PutWebhookRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(webhook.WebhookOuterClass._PutWebhookRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.webhook_ = webhookBuilder_ == null ? webhook_ : webhookBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof webhook.WebhookOuterClass._PutWebhookRequest) { return mergeFrom((webhook.WebhookOuterClass._PutWebhookRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(webhook.WebhookOuterClass._PutWebhookRequest other) { if (other == webhook.WebhookOuterClass._PutWebhookRequest.getDefaultInstance()) return this; if (other.hasWebhook()) { mergeWebhook(other.getWebhook()); } 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: { input.readMessage( getWebhookFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; 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 webhook.WebhookOuterClass._Webhook webhook_; private com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._Webhook, webhook.WebhookOuterClass._Webhook.Builder, webhook.WebhookOuterClass._WebhookOrBuilder> webhookBuilder_; /** * .webhook._Webhook webhook = 1; * @return Whether the webhook field is set. */ public boolean hasWebhook() { return ((bitField0_ & 0x00000001) != 0); } /** * .webhook._Webhook webhook = 1; * @return The webhook. */ public webhook.WebhookOuterClass._Webhook getWebhook() { if (webhookBuilder_ == null) { return webhook_ == null ? webhook.WebhookOuterClass._Webhook.getDefaultInstance() : webhook_; } else { return webhookBuilder_.getMessage(); } } /** * .webhook._Webhook webhook = 1; */ public Builder setWebhook(webhook.WebhookOuterClass._Webhook value) { if (webhookBuilder_ == null) { if (value == null) { throw new NullPointerException(); } webhook_ = value; } else { webhookBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .webhook._Webhook webhook = 1; */ public Builder setWebhook( webhook.WebhookOuterClass._Webhook.Builder builderForValue) { if (webhookBuilder_ == null) { webhook_ = builderForValue.build(); } else { webhookBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .webhook._Webhook webhook = 1; */ public Builder mergeWebhook(webhook.WebhookOuterClass._Webhook value) { if (webhookBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && webhook_ != null && webhook_ != webhook.WebhookOuterClass._Webhook.getDefaultInstance()) { getWebhookBuilder().mergeFrom(value); } else { webhook_ = value; } } else { webhookBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .webhook._Webhook webhook = 1; */ public Builder clearWebhook() { bitField0_ = (bitField0_ & ~0x00000001); webhook_ = null; if (webhookBuilder_ != null) { webhookBuilder_.dispose(); webhookBuilder_ = null; } onChanged(); return this; } /** * .webhook._Webhook webhook = 1; */ public webhook.WebhookOuterClass._Webhook.Builder getWebhookBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWebhookFieldBuilder().getBuilder(); } /** * .webhook._Webhook webhook = 1; */ public webhook.WebhookOuterClass._WebhookOrBuilder getWebhookOrBuilder() { if (webhookBuilder_ != null) { return webhookBuilder_.getMessageOrBuilder(); } else { return webhook_ == null ? webhook.WebhookOuterClass._Webhook.getDefaultInstance() : webhook_; } } /** * .webhook._Webhook webhook = 1; */ private com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._Webhook, webhook.WebhookOuterClass._Webhook.Builder, webhook.WebhookOuterClass._WebhookOrBuilder> getWebhookFieldBuilder() { if (webhookBuilder_ == null) { webhookBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._Webhook, webhook.WebhookOuterClass._Webhook.Builder, webhook.WebhookOuterClass._WebhookOrBuilder>( getWebhook(), 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._PutWebhookRequest) } // @@protoc_insertion_point(class_scope:webhook._PutWebhookRequest) private static final webhook.WebhookOuterClass._PutWebhookRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new webhook.WebhookOuterClass._PutWebhookRequest(); } public static webhook.WebhookOuterClass._PutWebhookRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_PutWebhookRequest> PARSER = new com.google.protobuf.AbstractParser<_PutWebhookRequest>() { @java.lang.Override public _PutWebhookRequest 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<_PutWebhookRequest> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_PutWebhookRequest> getParserForType() { return PARSER; } @java.lang.Override public webhook.WebhookOuterClass._PutWebhookRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface _PutWebhookResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:webhook._PutWebhookResponse) com.google.protobuf.MessageOrBuilder { /** * string secret_string = 1; * @return The secretString. */ java.lang.String getSecretString(); /** * string secret_string = 1; * @return The bytes for secretString. */ com.google.protobuf.ByteString getSecretStringBytes(); } /** * Protobuf type {@code webhook._PutWebhookResponse} */ public static final class _PutWebhookResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:webhook._PutWebhookResponse) _PutWebhookResponseOrBuilder { private static final long serialVersionUID = 0L; // Use _PutWebhookResponse.newBuilder() to construct. private _PutWebhookResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _PutWebhookResponse() { secretString_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _PutWebhookResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__PutWebhookResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__PutWebhookResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._PutWebhookResponse.class, webhook.WebhookOuterClass._PutWebhookResponse.Builder.class); } public static final int SECRET_STRING_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object secretString_ = ""; /** * string secret_string = 1; * @return The secretString. */ @java.lang.Override public java.lang.String getSecretString() { java.lang.Object ref = secretString_; 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(); secretString_ = s; return s; } } /** * string secret_string = 1; * @return The bytes for secretString. */ @java.lang.Override public com.google.protobuf.ByteString getSecretStringBytes() { java.lang.Object ref = secretString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secretString_ = 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(secretString_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, secretString_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretString_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, secretString_); } 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 webhook.WebhookOuterClass._PutWebhookResponse)) { return super.equals(obj); } webhook.WebhookOuterClass._PutWebhookResponse other = (webhook.WebhookOuterClass._PutWebhookResponse) obj; if (!getSecretString() .equals(other.getSecretString())) 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(); hash = (37 * hash) + SECRET_STRING_FIELD_NUMBER; hash = (53 * hash) + getSecretString().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static webhook.WebhookOuterClass._PutWebhookResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._PutWebhookResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._PutWebhookResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._PutWebhookResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._PutWebhookResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._PutWebhookResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._PutWebhookResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._PutWebhookResponse 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 webhook.WebhookOuterClass._PutWebhookResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._PutWebhookResponse 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 webhook.WebhookOuterClass._PutWebhookResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._PutWebhookResponse 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(webhook.WebhookOuterClass._PutWebhookResponse 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._PutWebhookResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:webhook._PutWebhookResponse) webhook.WebhookOuterClass._PutWebhookResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__PutWebhookResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__PutWebhookResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._PutWebhookResponse.class, webhook.WebhookOuterClass._PutWebhookResponse.Builder.class); } // Construct using webhook.WebhookOuterClass._PutWebhookResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; secretString_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return webhook.WebhookOuterClass.internal_static_webhook__PutWebhookResponse_descriptor; } @java.lang.Override public webhook.WebhookOuterClass._PutWebhookResponse getDefaultInstanceForType() { return webhook.WebhookOuterClass._PutWebhookResponse.getDefaultInstance(); } @java.lang.Override public webhook.WebhookOuterClass._PutWebhookResponse build() { webhook.WebhookOuterClass._PutWebhookResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public webhook.WebhookOuterClass._PutWebhookResponse buildPartial() { webhook.WebhookOuterClass._PutWebhookResponse result = new webhook.WebhookOuterClass._PutWebhookResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(webhook.WebhookOuterClass._PutWebhookResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.secretString_ = secretString_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof webhook.WebhookOuterClass._PutWebhookResponse) { return mergeFrom((webhook.WebhookOuterClass._PutWebhookResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(webhook.WebhookOuterClass._PutWebhookResponse other) { if (other == webhook.WebhookOuterClass._PutWebhookResponse.getDefaultInstance()) return this; if (!other.getSecretString().isEmpty()) { secretString_ = other.secretString_; bitField0_ |= 0x00000001; onChanged(); } 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: { secretString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; 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.lang.Object secretString_ = ""; /** * string secret_string = 1; * @return The secretString. */ public java.lang.String getSecretString() { java.lang.Object ref = secretString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretString_ = s; return s; } else { return (java.lang.String) ref; } } /** * string secret_string = 1; * @return The bytes for secretString. */ public com.google.protobuf.ByteString getSecretStringBytes() { java.lang.Object ref = secretString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secretString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string secret_string = 1; * @param value The secretString to set. * @return This builder for chaining. */ public Builder setSecretString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } secretString_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string secret_string = 1; * @return This builder for chaining. */ public Builder clearSecretString() { secretString_ = getDefaultInstance().getSecretString(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string secret_string = 1; * @param value The bytes for secretString to set. * @return This builder for chaining. */ public Builder setSecretStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); secretString_ = value; bitField0_ |= 0x00000001; 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:webhook._PutWebhookResponse) } // @@protoc_insertion_point(class_scope:webhook._PutWebhookResponse) private static final webhook.WebhookOuterClass._PutWebhookResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new webhook.WebhookOuterClass._PutWebhookResponse(); } public static webhook.WebhookOuterClass._PutWebhookResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_PutWebhookResponse> PARSER = new com.google.protobuf.AbstractParser<_PutWebhookResponse>() { @java.lang.Override public _PutWebhookResponse 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<_PutWebhookResponse> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_PutWebhookResponse> getParserForType() { return PARSER; } @java.lang.Override public webhook.WebhookOuterClass._PutWebhookResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface _DeleteWebhookRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:webhook._DeleteWebhookRequest) com.google.protobuf.MessageOrBuilder { /** * .webhook._WebhookId webhook_id = 1; * @return Whether the webhookId field is set. */ boolean hasWebhookId(); /** * .webhook._WebhookId webhook_id = 1; * @return The webhookId. */ webhook.WebhookOuterClass._WebhookId getWebhookId(); /** * .webhook._WebhookId webhook_id = 1; */ webhook.WebhookOuterClass._WebhookIdOrBuilder getWebhookIdOrBuilder(); } /** * Protobuf type {@code webhook._DeleteWebhookRequest} */ public static final class _DeleteWebhookRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:webhook._DeleteWebhookRequest) _DeleteWebhookRequestOrBuilder { private static final long serialVersionUID = 0L; // Use _DeleteWebhookRequest.newBuilder() to construct. private _DeleteWebhookRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _DeleteWebhookRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _DeleteWebhookRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__DeleteWebhookRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__DeleteWebhookRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._DeleteWebhookRequest.class, webhook.WebhookOuterClass._DeleteWebhookRequest.Builder.class); } public static final int WEBHOOK_ID_FIELD_NUMBER = 1; private webhook.WebhookOuterClass._WebhookId webhookId_; /** * .webhook._WebhookId webhook_id = 1; * @return Whether the webhookId field is set. */ @java.lang.Override public boolean hasWebhookId() { return webhookId_ != null; } /** * .webhook._WebhookId webhook_id = 1; * @return The webhookId. */ @java.lang.Override public webhook.WebhookOuterClass._WebhookId getWebhookId() { return webhookId_ == null ? webhook.WebhookOuterClass._WebhookId.getDefaultInstance() : webhookId_; } /** * .webhook._WebhookId webhook_id = 1; */ @java.lang.Override public webhook.WebhookOuterClass._WebhookIdOrBuilder getWebhookIdOrBuilder() { return webhookId_ == null ? webhook.WebhookOuterClass._WebhookId.getDefaultInstance() : webhookId_; } 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 (webhookId_ != null) { output.writeMessage(1, getWebhookId()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (webhookId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getWebhookId()); } 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 webhook.WebhookOuterClass._DeleteWebhookRequest)) { return super.equals(obj); } webhook.WebhookOuterClass._DeleteWebhookRequest other = (webhook.WebhookOuterClass._DeleteWebhookRequest) obj; if (hasWebhookId() != other.hasWebhookId()) return false; if (hasWebhookId()) { if (!getWebhookId() .equals(other.getWebhookId())) 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 (hasWebhookId()) { hash = (37 * hash) + WEBHOOK_ID_FIELD_NUMBER; hash = (53 * hash) + getWebhookId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static webhook.WebhookOuterClass._DeleteWebhookRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._DeleteWebhookRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._DeleteWebhookRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._DeleteWebhookRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._DeleteWebhookRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._DeleteWebhookRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._DeleteWebhookRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._DeleteWebhookRequest 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 webhook.WebhookOuterClass._DeleteWebhookRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._DeleteWebhookRequest 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 webhook.WebhookOuterClass._DeleteWebhookRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._DeleteWebhookRequest 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(webhook.WebhookOuterClass._DeleteWebhookRequest 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._DeleteWebhookRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:webhook._DeleteWebhookRequest) webhook.WebhookOuterClass._DeleteWebhookRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__DeleteWebhookRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__DeleteWebhookRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._DeleteWebhookRequest.class, webhook.WebhookOuterClass._DeleteWebhookRequest.Builder.class); } // Construct using webhook.WebhookOuterClass._DeleteWebhookRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; webhookId_ = null; if (webhookIdBuilder_ != null) { webhookIdBuilder_.dispose(); webhookIdBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return webhook.WebhookOuterClass.internal_static_webhook__DeleteWebhookRequest_descriptor; } @java.lang.Override public webhook.WebhookOuterClass._DeleteWebhookRequest getDefaultInstanceForType() { return webhook.WebhookOuterClass._DeleteWebhookRequest.getDefaultInstance(); } @java.lang.Override public webhook.WebhookOuterClass._DeleteWebhookRequest build() { webhook.WebhookOuterClass._DeleteWebhookRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public webhook.WebhookOuterClass._DeleteWebhookRequest buildPartial() { webhook.WebhookOuterClass._DeleteWebhookRequest result = new webhook.WebhookOuterClass._DeleteWebhookRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(webhook.WebhookOuterClass._DeleteWebhookRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.webhookId_ = webhookIdBuilder_ == null ? webhookId_ : webhookIdBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof webhook.WebhookOuterClass._DeleteWebhookRequest) { return mergeFrom((webhook.WebhookOuterClass._DeleteWebhookRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(webhook.WebhookOuterClass._DeleteWebhookRequest other) { if (other == webhook.WebhookOuterClass._DeleteWebhookRequest.getDefaultInstance()) return this; if (other.hasWebhookId()) { mergeWebhookId(other.getWebhookId()); } 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: { input.readMessage( getWebhookIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; 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 webhook.WebhookOuterClass._WebhookId webhookId_; private com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._WebhookId, webhook.WebhookOuterClass._WebhookId.Builder, webhook.WebhookOuterClass._WebhookIdOrBuilder> webhookIdBuilder_; /** * .webhook._WebhookId webhook_id = 1; * @return Whether the webhookId field is set. */ public boolean hasWebhookId() { return ((bitField0_ & 0x00000001) != 0); } /** * .webhook._WebhookId webhook_id = 1; * @return The webhookId. */ public webhook.WebhookOuterClass._WebhookId getWebhookId() { if (webhookIdBuilder_ == null) { return webhookId_ == null ? webhook.WebhookOuterClass._WebhookId.getDefaultInstance() : webhookId_; } else { return webhookIdBuilder_.getMessage(); } } /** * .webhook._WebhookId webhook_id = 1; */ public Builder setWebhookId(webhook.WebhookOuterClass._WebhookId value) { if (webhookIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } webhookId_ = value; } else { webhookIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .webhook._WebhookId webhook_id = 1; */ public Builder setWebhookId( webhook.WebhookOuterClass._WebhookId.Builder builderForValue) { if (webhookIdBuilder_ == null) { webhookId_ = builderForValue.build(); } else { webhookIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .webhook._WebhookId webhook_id = 1; */ public Builder mergeWebhookId(webhook.WebhookOuterClass._WebhookId value) { if (webhookIdBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && webhookId_ != null && webhookId_ != webhook.WebhookOuterClass._WebhookId.getDefaultInstance()) { getWebhookIdBuilder().mergeFrom(value); } else { webhookId_ = value; } } else { webhookIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .webhook._WebhookId webhook_id = 1; */ public Builder clearWebhookId() { bitField0_ = (bitField0_ & ~0x00000001); webhookId_ = null; if (webhookIdBuilder_ != null) { webhookIdBuilder_.dispose(); webhookIdBuilder_ = null; } onChanged(); return this; } /** * .webhook._WebhookId webhook_id = 1; */ public webhook.WebhookOuterClass._WebhookId.Builder getWebhookIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWebhookIdFieldBuilder().getBuilder(); } /** * .webhook._WebhookId webhook_id = 1; */ public webhook.WebhookOuterClass._WebhookIdOrBuilder getWebhookIdOrBuilder() { if (webhookIdBuilder_ != null) { return webhookIdBuilder_.getMessageOrBuilder(); } else { return webhookId_ == null ? webhook.WebhookOuterClass._WebhookId.getDefaultInstance() : webhookId_; } } /** * .webhook._WebhookId webhook_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._WebhookId, webhook.WebhookOuterClass._WebhookId.Builder, webhook.WebhookOuterClass._WebhookIdOrBuilder> getWebhookIdFieldBuilder() { if (webhookIdBuilder_ == null) { webhookIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._WebhookId, webhook.WebhookOuterClass._WebhookId.Builder, webhook.WebhookOuterClass._WebhookIdOrBuilder>( getWebhookId(), getParentForChildren(), isClean()); webhookId_ = null; } return webhookIdBuilder_; } @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._DeleteWebhookRequest) } // @@protoc_insertion_point(class_scope:webhook._DeleteWebhookRequest) private static final webhook.WebhookOuterClass._DeleteWebhookRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new webhook.WebhookOuterClass._DeleteWebhookRequest(); } public static webhook.WebhookOuterClass._DeleteWebhookRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_DeleteWebhookRequest> PARSER = new com.google.protobuf.AbstractParser<_DeleteWebhookRequest>() { @java.lang.Override public _DeleteWebhookRequest 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<_DeleteWebhookRequest> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_DeleteWebhookRequest> getParserForType() { return PARSER; } @java.lang.Override public webhook.WebhookOuterClass._DeleteWebhookRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface _DeleteWebhookResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:webhook._DeleteWebhookResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code webhook._DeleteWebhookResponse} */ public static final class _DeleteWebhookResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:webhook._DeleteWebhookResponse) _DeleteWebhookResponseOrBuilder { private static final long serialVersionUID = 0L; // Use _DeleteWebhookResponse.newBuilder() to construct. private _DeleteWebhookResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _DeleteWebhookResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _DeleteWebhookResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__DeleteWebhookResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__DeleteWebhookResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._DeleteWebhookResponse.class, webhook.WebhookOuterClass._DeleteWebhookResponse.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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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 webhook.WebhookOuterClass._DeleteWebhookResponse)) { return super.equals(obj); } webhook.WebhookOuterClass._DeleteWebhookResponse other = (webhook.WebhookOuterClass._DeleteWebhookResponse) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static webhook.WebhookOuterClass._DeleteWebhookResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._DeleteWebhookResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._DeleteWebhookResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._DeleteWebhookResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._DeleteWebhookResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._DeleteWebhookResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._DeleteWebhookResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._DeleteWebhookResponse 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 webhook.WebhookOuterClass._DeleteWebhookResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._DeleteWebhookResponse 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 webhook.WebhookOuterClass._DeleteWebhookResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._DeleteWebhookResponse 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(webhook.WebhookOuterClass._DeleteWebhookResponse 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._DeleteWebhookResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:webhook._DeleteWebhookResponse) webhook.WebhookOuterClass._DeleteWebhookResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__DeleteWebhookResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__DeleteWebhookResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._DeleteWebhookResponse.class, webhook.WebhookOuterClass._DeleteWebhookResponse.Builder.class); } // Construct using webhook.WebhookOuterClass._DeleteWebhookResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return webhook.WebhookOuterClass.internal_static_webhook__DeleteWebhookResponse_descriptor; } @java.lang.Override public webhook.WebhookOuterClass._DeleteWebhookResponse getDefaultInstanceForType() { return webhook.WebhookOuterClass._DeleteWebhookResponse.getDefaultInstance(); } @java.lang.Override public webhook.WebhookOuterClass._DeleteWebhookResponse build() { webhook.WebhookOuterClass._DeleteWebhookResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public webhook.WebhookOuterClass._DeleteWebhookResponse buildPartial() { webhook.WebhookOuterClass._DeleteWebhookResponse result = new webhook.WebhookOuterClass._DeleteWebhookResponse(this); onBuilt(); return result; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof webhook.WebhookOuterClass._DeleteWebhookResponse) { return mergeFrom((webhook.WebhookOuterClass._DeleteWebhookResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(webhook.WebhookOuterClass._DeleteWebhookResponse other) { if (other == webhook.WebhookOuterClass._DeleteWebhookResponse.getDefaultInstance()) return this; 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; 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; } @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._DeleteWebhookResponse) } // @@protoc_insertion_point(class_scope:webhook._DeleteWebhookResponse) private static final webhook.WebhookOuterClass._DeleteWebhookResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new webhook.WebhookOuterClass._DeleteWebhookResponse(); } public static webhook.WebhookOuterClass._DeleteWebhookResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_DeleteWebhookResponse> PARSER = new com.google.protobuf.AbstractParser<_DeleteWebhookResponse>() { @java.lang.Override public _DeleteWebhookResponse 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<_DeleteWebhookResponse> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_DeleteWebhookResponse> getParserForType() { return PARSER; } @java.lang.Override public webhook.WebhookOuterClass._DeleteWebhookResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface _ListWebhookRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:webhook._ListWebhookRequest) com.google.protobuf.MessageOrBuilder { /** * string cache_name = 1; * @return The cacheName. */ java.lang.String getCacheName(); /** * string cache_name = 1; * @return The bytes for cacheName. */ com.google.protobuf.ByteString getCacheNameBytes(); } /** * Protobuf type {@code webhook._ListWebhookRequest} */ public static final class _ListWebhookRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:webhook._ListWebhookRequest) _ListWebhookRequestOrBuilder { private static final long serialVersionUID = 0L; // Use _ListWebhookRequest.newBuilder() to construct. private _ListWebhookRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _ListWebhookRequest() { cacheName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _ListWebhookRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__ListWebhookRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__ListWebhookRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._ListWebhookRequest.class, webhook.WebhookOuterClass._ListWebhookRequest.Builder.class); } public static final int CACHE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object cacheName_ = ""; /** * string cache_name = 1; * @return The cacheName. */ @java.lang.Override public java.lang.String getCacheName() { java.lang.Object ref = cacheName_; 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(); cacheName_ = s; return s; } } /** * string cache_name = 1; * @return The bytes for cacheName. */ @java.lang.Override public com.google.protobuf.ByteString getCacheNameBytes() { java.lang.Object ref = cacheName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cacheName_ = 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(cacheName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cacheName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cacheName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cacheName_); } 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 webhook.WebhookOuterClass._ListWebhookRequest)) { return super.equals(obj); } webhook.WebhookOuterClass._ListWebhookRequest other = (webhook.WebhookOuterClass._ListWebhookRequest) obj; if (!getCacheName() .equals(other.getCacheName())) 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(); hash = (37 * hash) + CACHE_NAME_FIELD_NUMBER; hash = (53 * hash) + getCacheName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static webhook.WebhookOuterClass._ListWebhookRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._ListWebhookRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._ListWebhookRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._ListWebhookRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._ListWebhookRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._ListWebhookRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._ListWebhookRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._ListWebhookRequest 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 webhook.WebhookOuterClass._ListWebhookRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._ListWebhookRequest 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 webhook.WebhookOuterClass._ListWebhookRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._ListWebhookRequest 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(webhook.WebhookOuterClass._ListWebhookRequest 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._ListWebhookRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:webhook._ListWebhookRequest) webhook.WebhookOuterClass._ListWebhookRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__ListWebhookRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__ListWebhookRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._ListWebhookRequest.class, webhook.WebhookOuterClass._ListWebhookRequest.Builder.class); } // Construct using webhook.WebhookOuterClass._ListWebhookRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cacheName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return webhook.WebhookOuterClass.internal_static_webhook__ListWebhookRequest_descriptor; } @java.lang.Override public webhook.WebhookOuterClass._ListWebhookRequest getDefaultInstanceForType() { return webhook.WebhookOuterClass._ListWebhookRequest.getDefaultInstance(); } @java.lang.Override public webhook.WebhookOuterClass._ListWebhookRequest build() { webhook.WebhookOuterClass._ListWebhookRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public webhook.WebhookOuterClass._ListWebhookRequest buildPartial() { webhook.WebhookOuterClass._ListWebhookRequest result = new webhook.WebhookOuterClass._ListWebhookRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(webhook.WebhookOuterClass._ListWebhookRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.cacheName_ = cacheName_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof webhook.WebhookOuterClass._ListWebhookRequest) { return mergeFrom((webhook.WebhookOuterClass._ListWebhookRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(webhook.WebhookOuterClass._ListWebhookRequest other) { if (other == webhook.WebhookOuterClass._ListWebhookRequest.getDefaultInstance()) return this; if (!other.getCacheName().isEmpty()) { cacheName_ = other.cacheName_; bitField0_ |= 0x00000001; onChanged(); } 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: { cacheName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; 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.lang.Object cacheName_ = ""; /** * string cache_name = 1; * @return The cacheName. */ public java.lang.String getCacheName() { java.lang.Object ref = cacheName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cacheName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cache_name = 1; * @return The bytes for cacheName. */ public com.google.protobuf.ByteString getCacheNameBytes() { java.lang.Object ref = cacheName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cacheName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cache_name = 1; * @param value The cacheName to set. * @return This builder for chaining. */ public Builder setCacheName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cacheName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string cache_name = 1; * @return This builder for chaining. */ public Builder clearCacheName() { cacheName_ = getDefaultInstance().getCacheName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string cache_name = 1; * @param value The bytes for cacheName to set. * @return This builder for chaining. */ public Builder setCacheNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cacheName_ = value; bitField0_ |= 0x00000001; 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:webhook._ListWebhookRequest) } // @@protoc_insertion_point(class_scope:webhook._ListWebhookRequest) private static final webhook.WebhookOuterClass._ListWebhookRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new webhook.WebhookOuterClass._ListWebhookRequest(); } public static webhook.WebhookOuterClass._ListWebhookRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_ListWebhookRequest> PARSER = new com.google.protobuf.AbstractParser<_ListWebhookRequest>() { @java.lang.Override public _ListWebhookRequest 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<_ListWebhookRequest> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_ListWebhookRequest> getParserForType() { return PARSER; } @java.lang.Override public webhook.WebhookOuterClass._ListWebhookRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface _ListWebhooksResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:webhook._ListWebhooksResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .webhook._Webhook webhook = 1; */ java.util.List getWebhookList(); /** * repeated .webhook._Webhook webhook = 1; */ webhook.WebhookOuterClass._Webhook getWebhook(int index); /** * repeated .webhook._Webhook webhook = 1; */ int getWebhookCount(); /** * repeated .webhook._Webhook webhook = 1; */ java.util.List getWebhookOrBuilderList(); /** * repeated .webhook._Webhook webhook = 1; */ webhook.WebhookOuterClass._WebhookOrBuilder getWebhookOrBuilder( int index); } /** * Protobuf type {@code webhook._ListWebhooksResponse} */ public static 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 webhook.WebhookOuterClass.internal_static_webhook__ListWebhooksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__ListWebhooksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._ListWebhooksResponse.class, webhook.WebhookOuterClass._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 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 webhook.WebhookOuterClass._Webhook getWebhook(int index) { return webhook_.get(index); } /** * repeated .webhook._Webhook webhook = 1; */ @java.lang.Override public webhook.WebhookOuterClass._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 webhook.WebhookOuterClass._ListWebhooksResponse)) { return super.equals(obj); } webhook.WebhookOuterClass._ListWebhooksResponse other = (webhook.WebhookOuterClass._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 webhook.WebhookOuterClass._ListWebhooksResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._ListWebhooksResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._ListWebhooksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._ListWebhooksResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._ListWebhooksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._ListWebhooksResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._ListWebhooksResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._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 webhook.WebhookOuterClass._ListWebhooksResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._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 webhook.WebhookOuterClass._ListWebhooksResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._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(webhook.WebhookOuterClass._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) webhook.WebhookOuterClass._ListWebhooksResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__ListWebhooksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__ListWebhooksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._ListWebhooksResponse.class, webhook.WebhookOuterClass._ListWebhooksResponse.Builder.class); } // Construct using webhook.WebhookOuterClass._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 webhook.WebhookOuterClass.internal_static_webhook__ListWebhooksResponse_descriptor; } @java.lang.Override public webhook.WebhookOuterClass._ListWebhooksResponse getDefaultInstanceForType() { return webhook.WebhookOuterClass._ListWebhooksResponse.getDefaultInstance(); } @java.lang.Override public webhook.WebhookOuterClass._ListWebhooksResponse build() { webhook.WebhookOuterClass._ListWebhooksResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public webhook.WebhookOuterClass._ListWebhooksResponse buildPartial() { webhook.WebhookOuterClass._ListWebhooksResponse result = new webhook.WebhookOuterClass._ListWebhooksResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(webhook.WebhookOuterClass._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(webhook.WebhookOuterClass._ListWebhooksResponse result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof webhook.WebhookOuterClass._ListWebhooksResponse) { return mergeFrom((webhook.WebhookOuterClass._ListWebhooksResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(webhook.WebhookOuterClass._ListWebhooksResponse other) { if (other == webhook.WebhookOuterClass._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: { webhook.WebhookOuterClass._Webhook m = input.readMessage( webhook.WebhookOuterClass._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< webhook.WebhookOuterClass._Webhook, webhook.WebhookOuterClass._Webhook.Builder, webhook.WebhookOuterClass._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 webhook.WebhookOuterClass._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, webhook.WebhookOuterClass._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, webhook.WebhookOuterClass._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(webhook.WebhookOuterClass._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, webhook.WebhookOuterClass._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( webhook.WebhookOuterClass._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, webhook.WebhookOuterClass._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 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 webhook.WebhookOuterClass._Webhook.Builder getWebhookBuilder( int index) { return getWebhookFieldBuilder().getBuilder(index); } /** * repeated .webhook._Webhook webhook = 1; */ public webhook.WebhookOuterClass._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 getWebhookOrBuilderList() { if (webhookBuilder_ != null) { return webhookBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(webhook_); } } /** * repeated .webhook._Webhook webhook = 1; */ public webhook.WebhookOuterClass._Webhook.Builder addWebhookBuilder() { return getWebhookFieldBuilder().addBuilder( webhook.WebhookOuterClass._Webhook.getDefaultInstance()); } /** * repeated .webhook._Webhook webhook = 1; */ public webhook.WebhookOuterClass._Webhook.Builder addWebhookBuilder( int index) { return getWebhookFieldBuilder().addBuilder( index, webhook.WebhookOuterClass._Webhook.getDefaultInstance()); } /** * repeated .webhook._Webhook webhook = 1; */ public java.util.List getWebhookBuilderList() { return getWebhookFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< webhook.WebhookOuterClass._Webhook, webhook.WebhookOuterClass._Webhook.Builder, webhook.WebhookOuterClass._WebhookOrBuilder> getWebhookFieldBuilder() { if (webhookBuilder_ == null) { webhookBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< webhook.WebhookOuterClass._Webhook, webhook.WebhookOuterClass._Webhook.Builder, webhook.WebhookOuterClass._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 webhook.WebhookOuterClass._ListWebhooksResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new webhook.WebhookOuterClass._ListWebhooksResponse(); } public static webhook.WebhookOuterClass._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 webhook.WebhookOuterClass._ListWebhooksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface _GetWebhookSecretRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:webhook._GetWebhookSecretRequest) com.google.protobuf.MessageOrBuilder { /** * string cache_name = 1; * @return The cacheName. */ java.lang.String getCacheName(); /** * string cache_name = 1; * @return The bytes for cacheName. */ com.google.protobuf.ByteString getCacheNameBytes(); /** * string webhook_name = 2; * @return The webhookName. */ java.lang.String getWebhookName(); /** * string webhook_name = 2; * @return The bytes for webhookName. */ com.google.protobuf.ByteString getWebhookNameBytes(); } /** * Protobuf type {@code webhook._GetWebhookSecretRequest} */ public static final class _GetWebhookSecretRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:webhook._GetWebhookSecretRequest) _GetWebhookSecretRequestOrBuilder { private static final long serialVersionUID = 0L; // Use _GetWebhookSecretRequest.newBuilder() to construct. private _GetWebhookSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _GetWebhookSecretRequest() { cacheName_ = ""; webhookName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _GetWebhookSecretRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__GetWebhookSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__GetWebhookSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._GetWebhookSecretRequest.class, webhook.WebhookOuterClass._GetWebhookSecretRequest.Builder.class); } public static final int CACHE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object cacheName_ = ""; /** * string cache_name = 1; * @return The cacheName. */ @java.lang.Override public java.lang.String getCacheName() { java.lang.Object ref = cacheName_; 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(); cacheName_ = s; return s; } } /** * string cache_name = 1; * @return The bytes for cacheName. */ @java.lang.Override public com.google.protobuf.ByteString getCacheNameBytes() { java.lang.Object ref = cacheName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cacheName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WEBHOOK_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object webhookName_ = ""; /** * string webhook_name = 2; * @return The webhookName. */ @java.lang.Override public java.lang.String getWebhookName() { java.lang.Object ref = webhookName_; 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(); webhookName_ = s; return s; } } /** * string webhook_name = 2; * @return The bytes for webhookName. */ @java.lang.Override public com.google.protobuf.ByteString getWebhookNameBytes() { java.lang.Object ref = webhookName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); webhookName_ = 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(cacheName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cacheName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, webhookName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cacheName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cacheName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, webhookName_); } 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 webhook.WebhookOuterClass._GetWebhookSecretRequest)) { return super.equals(obj); } webhook.WebhookOuterClass._GetWebhookSecretRequest other = (webhook.WebhookOuterClass._GetWebhookSecretRequest) obj; if (!getCacheName() .equals(other.getCacheName())) return false; if (!getWebhookName() .equals(other.getWebhookName())) 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(); hash = (37 * hash) + CACHE_NAME_FIELD_NUMBER; hash = (53 * hash) + getCacheName().hashCode(); hash = (37 * hash) + WEBHOOK_NAME_FIELD_NUMBER; hash = (53 * hash) + getWebhookName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static webhook.WebhookOuterClass._GetWebhookSecretRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._GetWebhookSecretRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._GetWebhookSecretRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._GetWebhookSecretRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._GetWebhookSecretRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._GetWebhookSecretRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._GetWebhookSecretRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._GetWebhookSecretRequest 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 webhook.WebhookOuterClass._GetWebhookSecretRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._GetWebhookSecretRequest 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 webhook.WebhookOuterClass._GetWebhookSecretRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._GetWebhookSecretRequest 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(webhook.WebhookOuterClass._GetWebhookSecretRequest 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._GetWebhookSecretRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:webhook._GetWebhookSecretRequest) webhook.WebhookOuterClass._GetWebhookSecretRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__GetWebhookSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__GetWebhookSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._GetWebhookSecretRequest.class, webhook.WebhookOuterClass._GetWebhookSecretRequest.Builder.class); } // Construct using webhook.WebhookOuterClass._GetWebhookSecretRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cacheName_ = ""; webhookName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return webhook.WebhookOuterClass.internal_static_webhook__GetWebhookSecretRequest_descriptor; } @java.lang.Override public webhook.WebhookOuterClass._GetWebhookSecretRequest getDefaultInstanceForType() { return webhook.WebhookOuterClass._GetWebhookSecretRequest.getDefaultInstance(); } @java.lang.Override public webhook.WebhookOuterClass._GetWebhookSecretRequest build() { webhook.WebhookOuterClass._GetWebhookSecretRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public webhook.WebhookOuterClass._GetWebhookSecretRequest buildPartial() { webhook.WebhookOuterClass._GetWebhookSecretRequest result = new webhook.WebhookOuterClass._GetWebhookSecretRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(webhook.WebhookOuterClass._GetWebhookSecretRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.cacheName_ = cacheName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.webhookName_ = webhookName_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof webhook.WebhookOuterClass._GetWebhookSecretRequest) { return mergeFrom((webhook.WebhookOuterClass._GetWebhookSecretRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(webhook.WebhookOuterClass._GetWebhookSecretRequest other) { if (other == webhook.WebhookOuterClass._GetWebhookSecretRequest.getDefaultInstance()) return this; if (!other.getCacheName().isEmpty()) { cacheName_ = other.cacheName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getWebhookName().isEmpty()) { webhookName_ = other.webhookName_; bitField0_ |= 0x00000002; onChanged(); } 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: { cacheName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { webhookName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 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.lang.Object cacheName_ = ""; /** * string cache_name = 1; * @return The cacheName. */ public java.lang.String getCacheName() { java.lang.Object ref = cacheName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cacheName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cache_name = 1; * @return The bytes for cacheName. */ public com.google.protobuf.ByteString getCacheNameBytes() { java.lang.Object ref = cacheName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cacheName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cache_name = 1; * @param value The cacheName to set. * @return This builder for chaining. */ public Builder setCacheName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cacheName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string cache_name = 1; * @return This builder for chaining. */ public Builder clearCacheName() { cacheName_ = getDefaultInstance().getCacheName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string cache_name = 1; * @param value The bytes for cacheName to set. * @return This builder for chaining. */ public Builder setCacheNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cacheName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object webhookName_ = ""; /** * string webhook_name = 2; * @return The webhookName. */ public java.lang.String getWebhookName() { java.lang.Object ref = webhookName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); webhookName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string webhook_name = 2; * @return The bytes for webhookName. */ public com.google.protobuf.ByteString getWebhookNameBytes() { java.lang.Object ref = webhookName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); webhookName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string webhook_name = 2; * @param value The webhookName to set. * @return This builder for chaining. */ public Builder setWebhookName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } webhookName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string webhook_name = 2; * @return This builder for chaining. */ public Builder clearWebhookName() { webhookName_ = getDefaultInstance().getWebhookName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string webhook_name = 2; * @param value The bytes for webhookName to set. * @return This builder for chaining. */ public Builder setWebhookNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); webhookName_ = value; bitField0_ |= 0x00000002; 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:webhook._GetWebhookSecretRequest) } // @@protoc_insertion_point(class_scope:webhook._GetWebhookSecretRequest) private static final webhook.WebhookOuterClass._GetWebhookSecretRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new webhook.WebhookOuterClass._GetWebhookSecretRequest(); } public static webhook.WebhookOuterClass._GetWebhookSecretRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_GetWebhookSecretRequest> PARSER = new com.google.protobuf.AbstractParser<_GetWebhookSecretRequest>() { @java.lang.Override public _GetWebhookSecretRequest 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<_GetWebhookSecretRequest> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_GetWebhookSecretRequest> getParserForType() { return PARSER; } @java.lang.Override public webhook.WebhookOuterClass._GetWebhookSecretRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface _GetWebhookSecretResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:webhook._GetWebhookSecretResponse) com.google.protobuf.MessageOrBuilder { /** * string cache_name = 1; * @return The cacheName. */ java.lang.String getCacheName(); /** * string cache_name = 1; * @return The bytes for cacheName. */ com.google.protobuf.ByteString getCacheNameBytes(); /** * string webhook_name = 2; * @return The webhookName. */ java.lang.String getWebhookName(); /** * string webhook_name = 2; * @return The bytes for webhookName. */ com.google.protobuf.ByteString getWebhookNameBytes(); /** * string secret_string = 3; * @return The secretString. */ java.lang.String getSecretString(); /** * string secret_string = 3; * @return The bytes for secretString. */ com.google.protobuf.ByteString getSecretStringBytes(); } /** * Protobuf type {@code webhook._GetWebhookSecretResponse} */ public static final class _GetWebhookSecretResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:webhook._GetWebhookSecretResponse) _GetWebhookSecretResponseOrBuilder { private static final long serialVersionUID = 0L; // Use _GetWebhookSecretResponse.newBuilder() to construct. private _GetWebhookSecretResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _GetWebhookSecretResponse() { cacheName_ = ""; webhookName_ = ""; secretString_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _GetWebhookSecretResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__GetWebhookSecretResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__GetWebhookSecretResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._GetWebhookSecretResponse.class, webhook.WebhookOuterClass._GetWebhookSecretResponse.Builder.class); } public static final int CACHE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object cacheName_ = ""; /** * string cache_name = 1; * @return The cacheName. */ @java.lang.Override public java.lang.String getCacheName() { java.lang.Object ref = cacheName_; 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(); cacheName_ = s; return s; } } /** * string cache_name = 1; * @return The bytes for cacheName. */ @java.lang.Override public com.google.protobuf.ByteString getCacheNameBytes() { java.lang.Object ref = cacheName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cacheName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WEBHOOK_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object webhookName_ = ""; /** * string webhook_name = 2; * @return The webhookName. */ @java.lang.Override public java.lang.String getWebhookName() { java.lang.Object ref = webhookName_; 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(); webhookName_ = s; return s; } } /** * string webhook_name = 2; * @return The bytes for webhookName. */ @java.lang.Override public com.google.protobuf.ByteString getWebhookNameBytes() { java.lang.Object ref = webhookName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); webhookName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECRET_STRING_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object secretString_ = ""; /** * string secret_string = 3; * @return The secretString. */ @java.lang.Override public java.lang.String getSecretString() { java.lang.Object ref = secretString_; 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(); secretString_ = s; return s; } } /** * string secret_string = 3; * @return The bytes for secretString. */ @java.lang.Override public com.google.protobuf.ByteString getSecretStringBytes() { java.lang.Object ref = secretString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secretString_ = 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(cacheName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cacheName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, webhookName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretString_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secretString_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cacheName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cacheName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, webhookName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretString_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secretString_); } 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 webhook.WebhookOuterClass._GetWebhookSecretResponse)) { return super.equals(obj); } webhook.WebhookOuterClass._GetWebhookSecretResponse other = (webhook.WebhookOuterClass._GetWebhookSecretResponse) obj; if (!getCacheName() .equals(other.getCacheName())) return false; if (!getWebhookName() .equals(other.getWebhookName())) return false; if (!getSecretString() .equals(other.getSecretString())) 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(); hash = (37 * hash) + CACHE_NAME_FIELD_NUMBER; hash = (53 * hash) + getCacheName().hashCode(); hash = (37 * hash) + WEBHOOK_NAME_FIELD_NUMBER; hash = (53 * hash) + getWebhookName().hashCode(); hash = (37 * hash) + SECRET_STRING_FIELD_NUMBER; hash = (53 * hash) + getSecretString().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static webhook.WebhookOuterClass._GetWebhookSecretResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._GetWebhookSecretResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._GetWebhookSecretResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._GetWebhookSecretResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._GetWebhookSecretResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._GetWebhookSecretResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._GetWebhookSecretResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._GetWebhookSecretResponse 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 webhook.WebhookOuterClass._GetWebhookSecretResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._GetWebhookSecretResponse 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 webhook.WebhookOuterClass._GetWebhookSecretResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._GetWebhookSecretResponse 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(webhook.WebhookOuterClass._GetWebhookSecretResponse 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._GetWebhookSecretResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:webhook._GetWebhookSecretResponse) webhook.WebhookOuterClass._GetWebhookSecretResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__GetWebhookSecretResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__GetWebhookSecretResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._GetWebhookSecretResponse.class, webhook.WebhookOuterClass._GetWebhookSecretResponse.Builder.class); } // Construct using webhook.WebhookOuterClass._GetWebhookSecretResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cacheName_ = ""; webhookName_ = ""; secretString_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return webhook.WebhookOuterClass.internal_static_webhook__GetWebhookSecretResponse_descriptor; } @java.lang.Override public webhook.WebhookOuterClass._GetWebhookSecretResponse getDefaultInstanceForType() { return webhook.WebhookOuterClass._GetWebhookSecretResponse.getDefaultInstance(); } @java.lang.Override public webhook.WebhookOuterClass._GetWebhookSecretResponse build() { webhook.WebhookOuterClass._GetWebhookSecretResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public webhook.WebhookOuterClass._GetWebhookSecretResponse buildPartial() { webhook.WebhookOuterClass._GetWebhookSecretResponse result = new webhook.WebhookOuterClass._GetWebhookSecretResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(webhook.WebhookOuterClass._GetWebhookSecretResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.cacheName_ = cacheName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.webhookName_ = webhookName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.secretString_ = secretString_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof webhook.WebhookOuterClass._GetWebhookSecretResponse) { return mergeFrom((webhook.WebhookOuterClass._GetWebhookSecretResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(webhook.WebhookOuterClass._GetWebhookSecretResponse other) { if (other == webhook.WebhookOuterClass._GetWebhookSecretResponse.getDefaultInstance()) return this; if (!other.getCacheName().isEmpty()) { cacheName_ = other.cacheName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getWebhookName().isEmpty()) { webhookName_ = other.webhookName_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getSecretString().isEmpty()) { secretString_ = other.secretString_; bitField0_ |= 0x00000004; onChanged(); } 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: { cacheName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { webhookName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { secretString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 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.lang.Object cacheName_ = ""; /** * string cache_name = 1; * @return The cacheName. */ public java.lang.String getCacheName() { java.lang.Object ref = cacheName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cacheName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cache_name = 1; * @return The bytes for cacheName. */ public com.google.protobuf.ByteString getCacheNameBytes() { java.lang.Object ref = cacheName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cacheName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cache_name = 1; * @param value The cacheName to set. * @return This builder for chaining. */ public Builder setCacheName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cacheName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string cache_name = 1; * @return This builder for chaining. */ public Builder clearCacheName() { cacheName_ = getDefaultInstance().getCacheName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string cache_name = 1; * @param value The bytes for cacheName to set. * @return This builder for chaining. */ public Builder setCacheNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cacheName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object webhookName_ = ""; /** * string webhook_name = 2; * @return The webhookName. */ public java.lang.String getWebhookName() { java.lang.Object ref = webhookName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); webhookName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string webhook_name = 2; * @return The bytes for webhookName. */ public com.google.protobuf.ByteString getWebhookNameBytes() { java.lang.Object ref = webhookName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); webhookName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string webhook_name = 2; * @param value The webhookName to set. * @return This builder for chaining. */ public Builder setWebhookName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } webhookName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string webhook_name = 2; * @return This builder for chaining. */ public Builder clearWebhookName() { webhookName_ = getDefaultInstance().getWebhookName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string webhook_name = 2; * @param value The bytes for webhookName to set. * @return This builder for chaining. */ public Builder setWebhookNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); webhookName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object secretString_ = ""; /** * string secret_string = 3; * @return The secretString. */ public java.lang.String getSecretString() { java.lang.Object ref = secretString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretString_ = s; return s; } else { return (java.lang.String) ref; } } /** * string secret_string = 3; * @return The bytes for secretString. */ public com.google.protobuf.ByteString getSecretStringBytes() { java.lang.Object ref = secretString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secretString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string secret_string = 3; * @param value The secretString to set. * @return This builder for chaining. */ public Builder setSecretString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } secretString_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string secret_string = 3; * @return This builder for chaining. */ public Builder clearSecretString() { secretString_ = getDefaultInstance().getSecretString(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string secret_string = 3; * @param value The bytes for secretString to set. * @return This builder for chaining. */ public Builder setSecretStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); secretString_ = value; bitField0_ |= 0x00000004; 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:webhook._GetWebhookSecretResponse) } // @@protoc_insertion_point(class_scope:webhook._GetWebhookSecretResponse) private static final webhook.WebhookOuterClass._GetWebhookSecretResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new webhook.WebhookOuterClass._GetWebhookSecretResponse(); } public static webhook.WebhookOuterClass._GetWebhookSecretResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_GetWebhookSecretResponse> PARSER = new com.google.protobuf.AbstractParser<_GetWebhookSecretResponse>() { @java.lang.Override public _GetWebhookSecretResponse 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<_GetWebhookSecretResponse> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_GetWebhookSecretResponse> getParserForType() { return PARSER; } @java.lang.Override public webhook.WebhookOuterClass._GetWebhookSecretResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface _WebhookDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:webhook._WebhookDestination) com.google.protobuf.MessageOrBuilder { /** * string post_url = 1; * @return Whether the postUrl field is set. */ boolean hasPostUrl(); /** * string post_url = 1; * @return The postUrl. */ java.lang.String getPostUrl(); /** * string post_url = 1; * @return The bytes for postUrl. */ com.google.protobuf.ByteString getPostUrlBytes(); webhook.WebhookOuterClass._WebhookDestination.KindCase getKindCase(); } /** * Protobuf type {@code webhook._WebhookDestination} */ public static final class _WebhookDestination extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:webhook._WebhookDestination) _WebhookDestinationOrBuilder { private static final long serialVersionUID = 0L; // Use _WebhookDestination.newBuilder() to construct. private _WebhookDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _WebhookDestination() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _WebhookDestination(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__WebhookDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__WebhookDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._WebhookDestination.class, webhook.WebhookOuterClass._WebhookDestination.Builder.class); } private int kindCase_ = 0; @SuppressWarnings("serial") private java.lang.Object kind_; public enum KindCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { POST_URL(1), KIND_NOT_SET(0); private final int value; private KindCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static KindCase valueOf(int value) { return forNumber(value); } public static KindCase forNumber(int value) { switch (value) { case 1: return POST_URL; case 0: return KIND_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public KindCase getKindCase() { return KindCase.forNumber( kindCase_); } public static final int POST_URL_FIELD_NUMBER = 1; /** * string post_url = 1; * @return Whether the postUrl field is set. */ public boolean hasPostUrl() { return kindCase_ == 1; } /** * string post_url = 1; * @return The postUrl. */ public java.lang.String getPostUrl() { java.lang.Object ref = ""; if (kindCase_ == 1) { ref = kind_; } 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(); if (kindCase_ == 1) { kind_ = s; } return s; } } /** * string post_url = 1; * @return The bytes for postUrl. */ public com.google.protobuf.ByteString getPostUrlBytes() { java.lang.Object ref = ""; if (kindCase_ == 1) { ref = kind_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (kindCase_ == 1) { kind_ = 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 (kindCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (kindCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kind_); } 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 webhook.WebhookOuterClass._WebhookDestination)) { return super.equals(obj); } webhook.WebhookOuterClass._WebhookDestination other = (webhook.WebhookOuterClass._WebhookDestination) obj; if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { case 1: if (!getPostUrl() .equals(other.getPostUrl())) return false; break; case 0: default: } 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(); switch (kindCase_) { case 1: hash = (37 * hash) + POST_URL_FIELD_NUMBER; hash = (53 * hash) + getPostUrl().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static webhook.WebhookOuterClass._WebhookDestination parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._WebhookDestination parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._WebhookDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._WebhookDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._WebhookDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._WebhookDestination parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._WebhookDestination parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._WebhookDestination 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 webhook.WebhookOuterClass._WebhookDestination parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._WebhookDestination 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 webhook.WebhookOuterClass._WebhookDestination parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._WebhookDestination 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(webhook.WebhookOuterClass._WebhookDestination 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._WebhookDestination} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:webhook._WebhookDestination) webhook.WebhookOuterClass._WebhookDestinationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__WebhookDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__WebhookDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._WebhookDestination.class, webhook.WebhookOuterClass._WebhookDestination.Builder.class); } // Construct using webhook.WebhookOuterClass._WebhookDestination.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; kindCase_ = 0; kind_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return webhook.WebhookOuterClass.internal_static_webhook__WebhookDestination_descriptor; } @java.lang.Override public webhook.WebhookOuterClass._WebhookDestination getDefaultInstanceForType() { return webhook.WebhookOuterClass._WebhookDestination.getDefaultInstance(); } @java.lang.Override public webhook.WebhookOuterClass._WebhookDestination build() { webhook.WebhookOuterClass._WebhookDestination result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public webhook.WebhookOuterClass._WebhookDestination buildPartial() { webhook.WebhookOuterClass._WebhookDestination result = new webhook.WebhookOuterClass._WebhookDestination(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(webhook.WebhookOuterClass._WebhookDestination result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(webhook.WebhookOuterClass._WebhookDestination result) { result.kindCase_ = kindCase_; result.kind_ = this.kind_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof webhook.WebhookOuterClass._WebhookDestination) { return mergeFrom((webhook.WebhookOuterClass._WebhookDestination)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(webhook.WebhookOuterClass._WebhookDestination other) { if (other == webhook.WebhookOuterClass._WebhookDestination.getDefaultInstance()) return this; switch (other.getKindCase()) { case POST_URL: { kindCase_ = 1; kind_ = other.kind_; onChanged(); break; } case KIND_NOT_SET: { break; } } 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: { java.lang.String s = input.readStringRequireUtf8(); kindCase_ = 1; kind_ = s; 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 kindCase_ = 0; private java.lang.Object kind_; public KindCase getKindCase() { return KindCase.forNumber( kindCase_); } public Builder clearKind() { kindCase_ = 0; kind_ = null; onChanged(); return this; } private int bitField0_; /** * string post_url = 1; * @return Whether the postUrl field is set. */ @java.lang.Override public boolean hasPostUrl() { return kindCase_ == 1; } /** * string post_url = 1; * @return The postUrl. */ @java.lang.Override public java.lang.String getPostUrl() { java.lang.Object ref = ""; if (kindCase_ == 1) { ref = kind_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (kindCase_ == 1) { kind_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string post_url = 1; * @return The bytes for postUrl. */ @java.lang.Override public com.google.protobuf.ByteString getPostUrlBytes() { java.lang.Object ref = ""; if (kindCase_ == 1) { ref = kind_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (kindCase_ == 1) { kind_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string post_url = 1; * @param value The postUrl to set. * @return This builder for chaining. */ public Builder setPostUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } kindCase_ = 1; kind_ = value; onChanged(); return this; } /** * string post_url = 1; * @return This builder for chaining. */ public Builder clearPostUrl() { if (kindCase_ == 1) { kindCase_ = 0; kind_ = null; onChanged(); } return this; } /** * string post_url = 1; * @param value The bytes for postUrl to set. * @return This builder for chaining. */ public Builder setPostUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kindCase_ = 1; kind_ = 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:webhook._WebhookDestination) } // @@protoc_insertion_point(class_scope:webhook._WebhookDestination) private static final webhook.WebhookOuterClass._WebhookDestination DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new webhook.WebhookOuterClass._WebhookDestination(); } public static webhook.WebhookOuterClass._WebhookDestination getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_WebhookDestination> PARSER = new com.google.protobuf.AbstractParser<_WebhookDestination>() { @java.lang.Override public _WebhookDestination 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<_WebhookDestination> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_WebhookDestination> getParserForType() { return PARSER; } @java.lang.Override public webhook.WebhookOuterClass._WebhookDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface _RotateWebhookSecretRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:webhook._RotateWebhookSecretRequest) com.google.protobuf.MessageOrBuilder { /** * .webhook._WebhookId webhook_id = 1; * @return Whether the webhookId field is set. */ boolean hasWebhookId(); /** * .webhook._WebhookId webhook_id = 1; * @return The webhookId. */ webhook.WebhookOuterClass._WebhookId getWebhookId(); /** * .webhook._WebhookId webhook_id = 1; */ webhook.WebhookOuterClass._WebhookIdOrBuilder getWebhookIdOrBuilder(); } /** * Protobuf type {@code webhook._RotateWebhookSecretRequest} */ public static final class _RotateWebhookSecretRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:webhook._RotateWebhookSecretRequest) _RotateWebhookSecretRequestOrBuilder { private static final long serialVersionUID = 0L; // Use _RotateWebhookSecretRequest.newBuilder() to construct. private _RotateWebhookSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _RotateWebhookSecretRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _RotateWebhookSecretRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__RotateWebhookSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__RotateWebhookSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._RotateWebhookSecretRequest.class, webhook.WebhookOuterClass._RotateWebhookSecretRequest.Builder.class); } public static final int WEBHOOK_ID_FIELD_NUMBER = 1; private webhook.WebhookOuterClass._WebhookId webhookId_; /** * .webhook._WebhookId webhook_id = 1; * @return Whether the webhookId field is set. */ @java.lang.Override public boolean hasWebhookId() { return webhookId_ != null; } /** * .webhook._WebhookId webhook_id = 1; * @return The webhookId. */ @java.lang.Override public webhook.WebhookOuterClass._WebhookId getWebhookId() { return webhookId_ == null ? webhook.WebhookOuterClass._WebhookId.getDefaultInstance() : webhookId_; } /** * .webhook._WebhookId webhook_id = 1; */ @java.lang.Override public webhook.WebhookOuterClass._WebhookIdOrBuilder getWebhookIdOrBuilder() { return webhookId_ == null ? webhook.WebhookOuterClass._WebhookId.getDefaultInstance() : webhookId_; } 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 (webhookId_ != null) { output.writeMessage(1, getWebhookId()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (webhookId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getWebhookId()); } 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 webhook.WebhookOuterClass._RotateWebhookSecretRequest)) { return super.equals(obj); } webhook.WebhookOuterClass._RotateWebhookSecretRequest other = (webhook.WebhookOuterClass._RotateWebhookSecretRequest) obj; if (hasWebhookId() != other.hasWebhookId()) return false; if (hasWebhookId()) { if (!getWebhookId() .equals(other.getWebhookId())) 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 (hasWebhookId()) { hash = (37 * hash) + WEBHOOK_ID_FIELD_NUMBER; hash = (53 * hash) + getWebhookId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static webhook.WebhookOuterClass._RotateWebhookSecretRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._RotateWebhookSecretRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._RotateWebhookSecretRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._RotateWebhookSecretRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._RotateWebhookSecretRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._RotateWebhookSecretRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._RotateWebhookSecretRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._RotateWebhookSecretRequest 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 webhook.WebhookOuterClass._RotateWebhookSecretRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._RotateWebhookSecretRequest 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 webhook.WebhookOuterClass._RotateWebhookSecretRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._RotateWebhookSecretRequest 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(webhook.WebhookOuterClass._RotateWebhookSecretRequest 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._RotateWebhookSecretRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:webhook._RotateWebhookSecretRequest) webhook.WebhookOuterClass._RotateWebhookSecretRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__RotateWebhookSecretRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__RotateWebhookSecretRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._RotateWebhookSecretRequest.class, webhook.WebhookOuterClass._RotateWebhookSecretRequest.Builder.class); } // Construct using webhook.WebhookOuterClass._RotateWebhookSecretRequest.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; webhookId_ = null; if (webhookIdBuilder_ != null) { webhookIdBuilder_.dispose(); webhookIdBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return webhook.WebhookOuterClass.internal_static_webhook__RotateWebhookSecretRequest_descriptor; } @java.lang.Override public webhook.WebhookOuterClass._RotateWebhookSecretRequest getDefaultInstanceForType() { return webhook.WebhookOuterClass._RotateWebhookSecretRequest.getDefaultInstance(); } @java.lang.Override public webhook.WebhookOuterClass._RotateWebhookSecretRequest build() { webhook.WebhookOuterClass._RotateWebhookSecretRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public webhook.WebhookOuterClass._RotateWebhookSecretRequest buildPartial() { webhook.WebhookOuterClass._RotateWebhookSecretRequest result = new webhook.WebhookOuterClass._RotateWebhookSecretRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(webhook.WebhookOuterClass._RotateWebhookSecretRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.webhookId_ = webhookIdBuilder_ == null ? webhookId_ : webhookIdBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof webhook.WebhookOuterClass._RotateWebhookSecretRequest) { return mergeFrom((webhook.WebhookOuterClass._RotateWebhookSecretRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(webhook.WebhookOuterClass._RotateWebhookSecretRequest other) { if (other == webhook.WebhookOuterClass._RotateWebhookSecretRequest.getDefaultInstance()) return this; if (other.hasWebhookId()) { mergeWebhookId(other.getWebhookId()); } 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: { input.readMessage( getWebhookIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; 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 webhook.WebhookOuterClass._WebhookId webhookId_; private com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._WebhookId, webhook.WebhookOuterClass._WebhookId.Builder, webhook.WebhookOuterClass._WebhookIdOrBuilder> webhookIdBuilder_; /** * .webhook._WebhookId webhook_id = 1; * @return Whether the webhookId field is set. */ public boolean hasWebhookId() { return ((bitField0_ & 0x00000001) != 0); } /** * .webhook._WebhookId webhook_id = 1; * @return The webhookId. */ public webhook.WebhookOuterClass._WebhookId getWebhookId() { if (webhookIdBuilder_ == null) { return webhookId_ == null ? webhook.WebhookOuterClass._WebhookId.getDefaultInstance() : webhookId_; } else { return webhookIdBuilder_.getMessage(); } } /** * .webhook._WebhookId webhook_id = 1; */ public Builder setWebhookId(webhook.WebhookOuterClass._WebhookId value) { if (webhookIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } webhookId_ = value; } else { webhookIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .webhook._WebhookId webhook_id = 1; */ public Builder setWebhookId( webhook.WebhookOuterClass._WebhookId.Builder builderForValue) { if (webhookIdBuilder_ == null) { webhookId_ = builderForValue.build(); } else { webhookIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .webhook._WebhookId webhook_id = 1; */ public Builder mergeWebhookId(webhook.WebhookOuterClass._WebhookId value) { if (webhookIdBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && webhookId_ != null && webhookId_ != webhook.WebhookOuterClass._WebhookId.getDefaultInstance()) { getWebhookIdBuilder().mergeFrom(value); } else { webhookId_ = value; } } else { webhookIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .webhook._WebhookId webhook_id = 1; */ public Builder clearWebhookId() { bitField0_ = (bitField0_ & ~0x00000001); webhookId_ = null; if (webhookIdBuilder_ != null) { webhookIdBuilder_.dispose(); webhookIdBuilder_ = null; } onChanged(); return this; } /** * .webhook._WebhookId webhook_id = 1; */ public webhook.WebhookOuterClass._WebhookId.Builder getWebhookIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWebhookIdFieldBuilder().getBuilder(); } /** * .webhook._WebhookId webhook_id = 1; */ public webhook.WebhookOuterClass._WebhookIdOrBuilder getWebhookIdOrBuilder() { if (webhookIdBuilder_ != null) { return webhookIdBuilder_.getMessageOrBuilder(); } else { return webhookId_ == null ? webhook.WebhookOuterClass._WebhookId.getDefaultInstance() : webhookId_; } } /** * .webhook._WebhookId webhook_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._WebhookId, webhook.WebhookOuterClass._WebhookId.Builder, webhook.WebhookOuterClass._WebhookIdOrBuilder> getWebhookIdFieldBuilder() { if (webhookIdBuilder_ == null) { webhookIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< webhook.WebhookOuterClass._WebhookId, webhook.WebhookOuterClass._WebhookId.Builder, webhook.WebhookOuterClass._WebhookIdOrBuilder>( getWebhookId(), getParentForChildren(), isClean()); webhookId_ = null; } return webhookIdBuilder_; } @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._RotateWebhookSecretRequest) } // @@protoc_insertion_point(class_scope:webhook._RotateWebhookSecretRequest) private static final webhook.WebhookOuterClass._RotateWebhookSecretRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new webhook.WebhookOuterClass._RotateWebhookSecretRequest(); } public static webhook.WebhookOuterClass._RotateWebhookSecretRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_RotateWebhookSecretRequest> PARSER = new com.google.protobuf.AbstractParser<_RotateWebhookSecretRequest>() { @java.lang.Override public _RotateWebhookSecretRequest 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<_RotateWebhookSecretRequest> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_RotateWebhookSecretRequest> getParserForType() { return PARSER; } @java.lang.Override public webhook.WebhookOuterClass._RotateWebhookSecretRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface _RotateWebhookSecretResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:webhook._RotateWebhookSecretResponse) com.google.protobuf.MessageOrBuilder { /** * string secret_string = 1; * @return The secretString. */ java.lang.String getSecretString(); /** * string secret_string = 1; * @return The bytes for secretString. */ com.google.protobuf.ByteString getSecretStringBytes(); } /** * Protobuf type {@code webhook._RotateWebhookSecretResponse} */ public static final class _RotateWebhookSecretResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:webhook._RotateWebhookSecretResponse) _RotateWebhookSecretResponseOrBuilder { private static final long serialVersionUID = 0L; // Use _RotateWebhookSecretResponse.newBuilder() to construct. private _RotateWebhookSecretResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private _RotateWebhookSecretResponse() { secretString_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new _RotateWebhookSecretResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__RotateWebhookSecretResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__RotateWebhookSecretResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._RotateWebhookSecretResponse.class, webhook.WebhookOuterClass._RotateWebhookSecretResponse.Builder.class); } public static final int SECRET_STRING_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object secretString_ = ""; /** * string secret_string = 1; * @return The secretString. */ @java.lang.Override public java.lang.String getSecretString() { java.lang.Object ref = secretString_; 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(); secretString_ = s; return s; } } /** * string secret_string = 1; * @return The bytes for secretString. */ @java.lang.Override public com.google.protobuf.ByteString getSecretStringBytes() { java.lang.Object ref = secretString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secretString_ = 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(secretString_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, secretString_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretString_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, secretString_); } 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 webhook.WebhookOuterClass._RotateWebhookSecretResponse)) { return super.equals(obj); } webhook.WebhookOuterClass._RotateWebhookSecretResponse other = (webhook.WebhookOuterClass._RotateWebhookSecretResponse) obj; if (!getSecretString() .equals(other.getSecretString())) 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(); hash = (37 * hash) + SECRET_STRING_FIELD_NUMBER; hash = (53 * hash) + getSecretString().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static webhook.WebhookOuterClass._RotateWebhookSecretResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._RotateWebhookSecretResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._RotateWebhookSecretResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._RotateWebhookSecretResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._RotateWebhookSecretResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static webhook.WebhookOuterClass._RotateWebhookSecretResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static webhook.WebhookOuterClass._RotateWebhookSecretResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._RotateWebhookSecretResponse 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 webhook.WebhookOuterClass._RotateWebhookSecretResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._RotateWebhookSecretResponse 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 webhook.WebhookOuterClass._RotateWebhookSecretResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static webhook.WebhookOuterClass._RotateWebhookSecretResponse 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(webhook.WebhookOuterClass._RotateWebhookSecretResponse 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._RotateWebhookSecretResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:webhook._RotateWebhookSecretResponse) webhook.WebhookOuterClass._RotateWebhookSecretResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return webhook.WebhookOuterClass.internal_static_webhook__RotateWebhookSecretResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return webhook.WebhookOuterClass.internal_static_webhook__RotateWebhookSecretResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( webhook.WebhookOuterClass._RotateWebhookSecretResponse.class, webhook.WebhookOuterClass._RotateWebhookSecretResponse.Builder.class); } // Construct using webhook.WebhookOuterClass._RotateWebhookSecretResponse.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; secretString_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return webhook.WebhookOuterClass.internal_static_webhook__RotateWebhookSecretResponse_descriptor; } @java.lang.Override public webhook.WebhookOuterClass._RotateWebhookSecretResponse getDefaultInstanceForType() { return webhook.WebhookOuterClass._RotateWebhookSecretResponse.getDefaultInstance(); } @java.lang.Override public webhook.WebhookOuterClass._RotateWebhookSecretResponse build() { webhook.WebhookOuterClass._RotateWebhookSecretResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public webhook.WebhookOuterClass._RotateWebhookSecretResponse buildPartial() { webhook.WebhookOuterClass._RotateWebhookSecretResponse result = new webhook.WebhookOuterClass._RotateWebhookSecretResponse(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(webhook.WebhookOuterClass._RotateWebhookSecretResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.secretString_ = secretString_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof webhook.WebhookOuterClass._RotateWebhookSecretResponse) { return mergeFrom((webhook.WebhookOuterClass._RotateWebhookSecretResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(webhook.WebhookOuterClass._RotateWebhookSecretResponse other) { if (other == webhook.WebhookOuterClass._RotateWebhookSecretResponse.getDefaultInstance()) return this; if (!other.getSecretString().isEmpty()) { secretString_ = other.secretString_; bitField0_ |= 0x00000001; onChanged(); } 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: { secretString_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; 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.lang.Object secretString_ = ""; /** * string secret_string = 1; * @return The secretString. */ public java.lang.String getSecretString() { java.lang.Object ref = secretString_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretString_ = s; return s; } else { return (java.lang.String) ref; } } /** * string secret_string = 1; * @return The bytes for secretString. */ public com.google.protobuf.ByteString getSecretStringBytes() { java.lang.Object ref = secretString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secretString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string secret_string = 1; * @param value The secretString to set. * @return This builder for chaining. */ public Builder setSecretString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } secretString_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string secret_string = 1; * @return This builder for chaining. */ public Builder clearSecretString() { secretString_ = getDefaultInstance().getSecretString(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string secret_string = 1; * @param value The bytes for secretString to set. * @return This builder for chaining. */ public Builder setSecretStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); secretString_ = value; bitField0_ |= 0x00000001; 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:webhook._RotateWebhookSecretResponse) } // @@protoc_insertion_point(class_scope:webhook._RotateWebhookSecretResponse) private static final webhook.WebhookOuterClass._RotateWebhookSecretResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new webhook.WebhookOuterClass._RotateWebhookSecretResponse(); } public static webhook.WebhookOuterClass._RotateWebhookSecretResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_RotateWebhookSecretResponse> PARSER = new com.google.protobuf.AbstractParser<_RotateWebhookSecretResponse>() { @java.lang.Override public _RotateWebhookSecretResponse 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<_RotateWebhookSecretResponse> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_RotateWebhookSecretResponse> getParserForType() { return PARSER; } @java.lang.Override public webhook.WebhookOuterClass._RotateWebhookSecretResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_webhook__WebhookId_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_webhook__WebhookId_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_webhook__Webhook_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_webhook__Webhook_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_webhook__PutWebhookRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_webhook__PutWebhookRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_webhook__PutWebhookResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_webhook__PutWebhookResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_webhook__DeleteWebhookRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_webhook__DeleteWebhookRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_webhook__DeleteWebhookResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_webhook__DeleteWebhookResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_webhook__ListWebhookRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_webhook__ListWebhookRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_webhook__ListWebhooksResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_webhook__ListWebhooksResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_webhook__GetWebhookSecretRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_webhook__GetWebhookSecretRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_webhook__GetWebhookSecretResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_webhook__GetWebhookSecretResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_webhook__WebhookDestination_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_webhook__WebhookDestination_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_webhook__RotateWebhookSecretRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_webhook__RotateWebhookSecretRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_webhook__RotateWebhookSecretResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_webhook__RotateWebhookSecretResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\rwebhook.proto\022\007webhook\"6\n\n_WebhookId\022\022" + "\n\ncache_name\030\001 \001(\t\022\024\n\014webhook_name\030\002 \001(\t" + "\"z\n\010_Webhook\022\'\n\nwebhook_id\030\001 \001(\0132\023.webho" + "ok._WebhookId\022\022\n\ntopic_name\030\002 \001(\t\0221\n\013des" + "tination\030\003 \001(\0132\034.webhook._WebhookDestina" + "tion\"8\n\022_PutWebhookRequest\022\"\n\007webhook\030\001 " + "\001(\0132\021.webhook._Webhook\",\n\023_PutWebhookRes" + "ponse\022\025\n\rsecret_string\030\001 \001(\t\"@\n\025_DeleteW" + "ebhookRequest\022\'\n\nwebhook_id\030\001 \001(\0132\023.webh" + "ook._WebhookId\"\030\n\026_DeleteWebhookResponse" + "\")\n\023_ListWebhookRequest\022\022\n\ncache_name\030\001 " + "\001(\t\";\n\025_ListWebhooksResponse\022\"\n\007webhook\030" + "\001 \003(\0132\021.webhook._Webhook\"D\n\030_GetWebhookS" + "ecretRequest\022\022\n\ncache_name\030\001 \001(\t\022\024\n\014webh" + "ook_name\030\002 \001(\t\"\\\n\031_GetWebhookSecretRespo" + "nse\022\022\n\ncache_name\030\001 \001(\t\022\024\n\014webhook_name\030" + "\002 \001(\t\022\025\n\rsecret_string\030\003 \001(\t\"1\n\023_Webhook" + "Destination\022\022\n\010post_url\030\001 \001(\tH\000B\006\n\004kind\"" + "F\n\033_RotateWebhookSecretRequest\022\'\n\nwebhoo" + "k_id\030\001 \001(\0132\023.webhook._WebhookId\"5\n\034_Rota" + "teWebhookSecretResponse\022\025\n\rsecret_string" + "\030\001 \001(\t2\273\003\n\007Webhook\022I\n\nPutWebhook\022\033.webho" + "ok._PutWebhookRequest\032\034.webhook._PutWebh" + "ookResponse\"\000\022R\n\rDeleteWebhook\022\036.webhook" + "._DeleteWebhookRequest\032\037.webhook._Delete" + "WebhookResponse\"\000\022N\n\014ListWebhooks\022\034.webh" + "ook._ListWebhookRequest\032\036.webhook._ListW" + "ebhooksResponse\"\000\022[\n\020GetWebhookSecret\022!." + "webhook._GetWebhookSecretRequest\032\".webho" + "ok._GetWebhookSecretResponse\"\000\022d\n\023Rotate" + "WebhookSecret\022$.webhook._RotateWebhookSe" + "cretRequest\032%.webhook._RotateWebhookSecr" + "etResponse\"\000b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_webhook__WebhookId_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_webhook__WebhookId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_webhook__WebhookId_descriptor, new java.lang.String[] { "CacheName", "WebhookName", }); internal_static_webhook__Webhook_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_webhook__Webhook_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_webhook__Webhook_descriptor, new java.lang.String[] { "WebhookId", "TopicName", "Destination", }); internal_static_webhook__PutWebhookRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_webhook__PutWebhookRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_webhook__PutWebhookRequest_descriptor, new java.lang.String[] { "Webhook", }); internal_static_webhook__PutWebhookResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_webhook__PutWebhookResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_webhook__PutWebhookResponse_descriptor, new java.lang.String[] { "SecretString", }); internal_static_webhook__DeleteWebhookRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_webhook__DeleteWebhookRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_webhook__DeleteWebhookRequest_descriptor, new java.lang.String[] { "WebhookId", }); internal_static_webhook__DeleteWebhookResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_webhook__DeleteWebhookResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_webhook__DeleteWebhookResponse_descriptor, new java.lang.String[] { }); internal_static_webhook__ListWebhookRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_webhook__ListWebhookRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_webhook__ListWebhookRequest_descriptor, new java.lang.String[] { "CacheName", }); internal_static_webhook__ListWebhooksResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_webhook__ListWebhooksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_webhook__ListWebhooksResponse_descriptor, new java.lang.String[] { "Webhook", }); internal_static_webhook__GetWebhookSecretRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_webhook__GetWebhookSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_webhook__GetWebhookSecretRequest_descriptor, new java.lang.String[] { "CacheName", "WebhookName", }); internal_static_webhook__GetWebhookSecretResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_webhook__GetWebhookSecretResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_webhook__GetWebhookSecretResponse_descriptor, new java.lang.String[] { "CacheName", "WebhookName", "SecretString", }); internal_static_webhook__WebhookDestination_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_webhook__WebhookDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_webhook__WebhookDestination_descriptor, new java.lang.String[] { "PostUrl", "Kind", }); internal_static_webhook__RotateWebhookSecretRequest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_webhook__RotateWebhookSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_webhook__RotateWebhookSecretRequest_descriptor, new java.lang.String[] { "WebhookId", }); internal_static_webhook__RotateWebhookSecretResponse_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_webhook__RotateWebhookSecretResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_webhook__RotateWebhookSecretResponse_descriptor, new java.lang.String[] { "SecretString", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy