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

grpc.control_client._TopicLimits Maven / Gradle / Ivy

There is a newer version: 0.119.4
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: controlclient.proto

package grpc.control_client;

/**
 * Protobuf type {@code control_client._TopicLimits}
 */
public final class _TopicLimits extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:control_client._TopicLimits)
    _TopicLimitsOrBuilder {
private static final long serialVersionUID = 0L;
  // Use _TopicLimits.newBuilder() to construct.
  private _TopicLimits(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private _TopicLimits() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new _TopicLimits();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return grpc.control_client.Controlclient.internal_static_control_client__TopicLimits_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return grpc.control_client.Controlclient.internal_static_control_client__TopicLimits_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            grpc.control_client._TopicLimits.class, grpc.control_client._TopicLimits.Builder.class);
  }

  public static final int MAX_PUBLISH_RATE_FIELD_NUMBER = 1;
  private int maxPublishRate_ = 0;
  /**
   * 
   * The amount of messages that can be published per second
   * 
* * uint32 max_publish_rate = 1; * @return The maxPublishRate. */ @java.lang.Override public int getMaxPublishRate() { return maxPublishRate_; } public static final int MAX_SUBSCRIPTION_COUNT_FIELD_NUMBER = 2; private int maxSubscriptionCount_ = 0; /** *
   * The maximum amount of active subscriptions per cache
   * 
* * uint32 max_subscription_count = 2; * @return The maxSubscriptionCount. */ @java.lang.Override public int getMaxSubscriptionCount() { return maxSubscriptionCount_; } public static final int MAX_PUBLISH_MESSAGE_SIZE_KB_FIELD_NUMBER = 3; private int maxPublishMessageSizeKb_ = 0; /** *
   * The maximum size of a single publish message, in KiB
   * 
* * uint32 max_publish_message_size_kb = 3; * @return The maxPublishMessageSizeKb. */ @java.lang.Override public int getMaxPublishMessageSizeKb() { return maxPublishMessageSizeKb_; } 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 (maxPublishRate_ != 0) { output.writeUInt32(1, maxPublishRate_); } if (maxSubscriptionCount_ != 0) { output.writeUInt32(2, maxSubscriptionCount_); } if (maxPublishMessageSizeKb_ != 0) { output.writeUInt32(3, maxPublishMessageSizeKb_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (maxPublishRate_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, maxPublishRate_); } if (maxSubscriptionCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, maxSubscriptionCount_); } if (maxPublishMessageSizeKb_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, maxPublishMessageSizeKb_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.control_client._TopicLimits)) { return super.equals(obj); } grpc.control_client._TopicLimits other = (grpc.control_client._TopicLimits) obj; if (getMaxPublishRate() != other.getMaxPublishRate()) return false; if (getMaxSubscriptionCount() != other.getMaxSubscriptionCount()) return false; if (getMaxPublishMessageSizeKb() != other.getMaxPublishMessageSizeKb()) 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) + MAX_PUBLISH_RATE_FIELD_NUMBER; hash = (53 * hash) + getMaxPublishRate(); hash = (37 * hash) + MAX_SUBSCRIPTION_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMaxSubscriptionCount(); hash = (37 * hash) + MAX_PUBLISH_MESSAGE_SIZE_KB_FIELD_NUMBER; hash = (53 * hash) + getMaxPublishMessageSizeKb(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static grpc.control_client._TopicLimits parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.control_client._TopicLimits parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.control_client._TopicLimits parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.control_client._TopicLimits parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.control_client._TopicLimits parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.control_client._TopicLimits parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.control_client._TopicLimits parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.control_client._TopicLimits parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static grpc.control_client._TopicLimits parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.control_client._TopicLimits parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static grpc.control_client._TopicLimits parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.control_client._TopicLimits parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(grpc.control_client._TopicLimits 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 control_client._TopicLimits} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:control_client._TopicLimits) grpc.control_client._TopicLimitsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.control_client.Controlclient.internal_static_control_client__TopicLimits_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.control_client.Controlclient.internal_static_control_client__TopicLimits_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.control_client._TopicLimits.class, grpc.control_client._TopicLimits.Builder.class); } // Construct using grpc.control_client._TopicLimits.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; maxPublishRate_ = 0; maxSubscriptionCount_ = 0; maxPublishMessageSizeKb_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.control_client.Controlclient.internal_static_control_client__TopicLimits_descriptor; } @java.lang.Override public grpc.control_client._TopicLimits getDefaultInstanceForType() { return grpc.control_client._TopicLimits.getDefaultInstance(); } @java.lang.Override public grpc.control_client._TopicLimits build() { grpc.control_client._TopicLimits result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.control_client._TopicLimits buildPartial() { grpc.control_client._TopicLimits result = new grpc.control_client._TopicLimits(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(grpc.control_client._TopicLimits result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.maxPublishRate_ = maxPublishRate_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.maxSubscriptionCount_ = maxSubscriptionCount_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.maxPublishMessageSizeKb_ = maxPublishMessageSizeKb_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof grpc.control_client._TopicLimits) { return mergeFrom((grpc.control_client._TopicLimits)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.control_client._TopicLimits other) { if (other == grpc.control_client._TopicLimits.getDefaultInstance()) return this; if (other.getMaxPublishRate() != 0) { setMaxPublishRate(other.getMaxPublishRate()); } if (other.getMaxSubscriptionCount() != 0) { setMaxSubscriptionCount(other.getMaxSubscriptionCount()); } if (other.getMaxPublishMessageSizeKb() != 0) { setMaxPublishMessageSizeKb(other.getMaxPublishMessageSizeKb()); } 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 8: { maxPublishRate_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { maxSubscriptionCount_ = input.readUInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { maxPublishMessageSizeKb_ = input.readUInt32(); bitField0_ |= 0x00000004; break; } // case 24 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 int maxPublishRate_ ; /** *
     * The amount of messages that can be published per second
     * 
* * uint32 max_publish_rate = 1; * @return The maxPublishRate. */ @java.lang.Override public int getMaxPublishRate() { return maxPublishRate_; } /** *
     * The amount of messages that can be published per second
     * 
* * uint32 max_publish_rate = 1; * @param value The maxPublishRate to set. * @return This builder for chaining. */ public Builder setMaxPublishRate(int value) { maxPublishRate_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The amount of messages that can be published per second
     * 
* * uint32 max_publish_rate = 1; * @return This builder for chaining. */ public Builder clearMaxPublishRate() { bitField0_ = (bitField0_ & ~0x00000001); maxPublishRate_ = 0; onChanged(); return this; } private int maxSubscriptionCount_ ; /** *
     * The maximum amount of active subscriptions per cache
     * 
* * uint32 max_subscription_count = 2; * @return The maxSubscriptionCount. */ @java.lang.Override public int getMaxSubscriptionCount() { return maxSubscriptionCount_; } /** *
     * The maximum amount of active subscriptions per cache
     * 
* * uint32 max_subscription_count = 2; * @param value The maxSubscriptionCount to set. * @return This builder for chaining. */ public Builder setMaxSubscriptionCount(int value) { maxSubscriptionCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The maximum amount of active subscriptions per cache
     * 
* * uint32 max_subscription_count = 2; * @return This builder for chaining. */ public Builder clearMaxSubscriptionCount() { bitField0_ = (bitField0_ & ~0x00000002); maxSubscriptionCount_ = 0; onChanged(); return this; } private int maxPublishMessageSizeKb_ ; /** *
     * The maximum size of a single publish message, in KiB
     * 
* * uint32 max_publish_message_size_kb = 3; * @return The maxPublishMessageSizeKb. */ @java.lang.Override public int getMaxPublishMessageSizeKb() { return maxPublishMessageSizeKb_; } /** *
     * The maximum size of a single publish message, in KiB
     * 
* * uint32 max_publish_message_size_kb = 3; * @param value The maxPublishMessageSizeKb to set. * @return This builder for chaining. */ public Builder setMaxPublishMessageSizeKb(int value) { maxPublishMessageSizeKb_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The maximum size of a single publish message, in KiB
     * 
* * uint32 max_publish_message_size_kb = 3; * @return This builder for chaining. */ public Builder clearMaxPublishMessageSizeKb() { bitField0_ = (bitField0_ & ~0x00000004); maxPublishMessageSizeKb_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:control_client._TopicLimits) } // @@protoc_insertion_point(class_scope:control_client._TopicLimits) private static final grpc.control_client._TopicLimits DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.control_client._TopicLimits(); } public static grpc.control_client._TopicLimits getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser<_TopicLimits> PARSER = new com.google.protobuf.AbstractParser<_TopicLimits>() { @java.lang.Override public _TopicLimits 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<_TopicLimits> parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser<_TopicLimits> getParserForType() { return PARSER; } @java.lang.Override public grpc.control_client._TopicLimits getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy