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

yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/iot/devices/v1/registry_data_service.proto

package yandex.cloud.api.iot.devices.v1;

public final class RegistryDataServiceOuterClass {
  private RegistryDataServiceOuterClass() {}
  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 PublishRegistryDataRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.PublishRegistryDataRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of registry publishing message
     * 
* * string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The registryId. */ java.lang.String getRegistryId(); /** *
     * ID of registry publishing message
     * 
* * string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for registryId. */ com.google.protobuf.ByteString getRegistryIdBytes(); /** *
     * Topic where message should be published
     * 
* * string topic = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1024"]; * @return The topic. */ java.lang.String getTopic(); /** *
     * Topic where message should be published
     * 
* * string topic = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1024"]; * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** *
     * Content of the message
     * 
* * bytes data = 3 [(.yandex.cloud.length) = "<=262144"]; * @return The data. */ com.google.protobuf.ByteString getData(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.PublishRegistryDataRequest} */ public static final class PublishRegistryDataRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.PublishRegistryDataRequest) PublishRegistryDataRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PublishRegistryDataRequest.newBuilder() to construct. private PublishRegistryDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PublishRegistryDataRequest() { registryId_ = ""; topic_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PublishRegistryDataRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PublishRegistryDataRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); registryId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); topic_ = s; break; } case 26: { data_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest.class, yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest.Builder.class); } public static final int REGISTRY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object registryId_; /** *
     * ID of registry publishing message
     * 
* * string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The registryId. */ @java.lang.Override public java.lang.String getRegistryId() { java.lang.Object ref = registryId_; 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(); registryId_ = s; return s; } } /** *
     * ID of registry publishing message
     * 
* * string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for registryId. */ @java.lang.Override public com.google.protobuf.ByteString getRegistryIdBytes() { java.lang.Object ref = registryId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); registryId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOPIC_FIELD_NUMBER = 2; private volatile java.lang.Object topic_; /** *
     * Topic where message should be published
     * 
* * string topic = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1024"]; * @return The topic. */ @java.lang.Override public java.lang.String getTopic() { java.lang.Object ref = topic_; 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(); topic_ = s; return s; } } /** *
     * Topic where message should be published
     * 
* * string topic = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1024"]; * @return The bytes for topic. */ @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); topic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString data_; /** *
     * Content of the message
     * 
* * bytes data = 3 [(.yandex.cloud.length) = "<=262144"]; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } 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(registryId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); } if (!data_.isEmpty()) { output.writeBytes(3, data_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registryId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, data_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest other = (yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest) obj; if (!getRegistryId() .equals(other.getRegistryId())) return false; if (!getTopic() .equals(other.getTopic())) return false; if (!getData() .equals(other.getData())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REGISTRY_ID_FIELD_NUMBER; hash = (53 * hash) + getRegistryId().hashCode(); hash = (37 * hash) + TOPIC_FIELD_NUMBER; hash = (53 * hash) + getTopic().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest 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 yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest 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 yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest 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(yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest 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 yandex.cloud.iot.devices.v1.PublishRegistryDataRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.PublishRegistryDataRequest) yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest.class, yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); registryId_ = ""; topic_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataRequest_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest build() { yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest buildPartial() { yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest result = new yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest(this); result.registryId_ = registryId_; result.topic_ = topic_; result.data_ = data_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest) { return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest other) { if (other == yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest.getDefaultInstance()) return this; if (!other.getRegistryId().isEmpty()) { registryId_ = other.registryId_; onChanged(); } if (!other.getTopic().isEmpty()) { topic_ = other.topic_; onChanged(); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object registryId_ = ""; /** *
       * ID of registry publishing message
       * 
* * string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The registryId. */ public java.lang.String getRegistryId() { java.lang.Object ref = registryId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); registryId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of registry publishing message
       * 
* * string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for registryId. */ public com.google.protobuf.ByteString getRegistryIdBytes() { java.lang.Object ref = registryId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); registryId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of registry publishing message
       * 
* * string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The registryId to set. * @return This builder for chaining. */ public Builder setRegistryId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } registryId_ = value; onChanged(); return this; } /** *
       * ID of registry publishing message
       * 
* * string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearRegistryId() { registryId_ = getDefaultInstance().getRegistryId(); onChanged(); return this; } /** *
       * ID of registry publishing message
       * 
* * string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for registryId to set. * @return This builder for chaining. */ public Builder setRegistryIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); registryId_ = value; onChanged(); return this; } private java.lang.Object topic_ = ""; /** *
       * Topic where message should be published
       * 
* * string topic = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1024"]; * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Topic where message should be published
       * 
* * string topic = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1024"]; * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); topic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Topic where message should be published
       * 
* * string topic = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1024"]; * @param value The topic to set. * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { if (value == null) { throw new NullPointerException(); } topic_ = value; onChanged(); return this; } /** *
       * Topic where message should be published
       * 
* * string topic = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1024"]; * @return This builder for chaining. */ public Builder clearTopic() { topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** *
       * Topic where message should be published
       * 
* * string topic = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=1024"]; * @param value The bytes for topic to set. * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Content of the message
       * 
* * bytes data = 3 [(.yandex.cloud.length) = "<=262144"]; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** *
       * Content of the message
       * 
* * bytes data = 3 [(.yandex.cloud.length) = "<=262144"]; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** *
       * Content of the message
       * 
* * bytes data = 3 [(.yandex.cloud.length) = "<=262144"]; * @return This builder for chaining. */ public Builder clearData() { data_ = getDefaultInstance().getData(); 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:yandex.cloud.iot.devices.v1.PublishRegistryDataRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.PublishRegistryDataRequest) private static final yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest(); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PublishRegistryDataRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PublishRegistryDataRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PublishRegistryDataResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.PublishRegistryDataResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.PublishRegistryDataResponse} */ public static final class PublishRegistryDataResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.PublishRegistryDataResponse) PublishRegistryDataResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PublishRegistryDataResponse.newBuilder() to construct. private PublishRegistryDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PublishRegistryDataResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PublishRegistryDataResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PublishRegistryDataResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse.class, yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse.Builder.class); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse other = (yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse 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 yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse 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 yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse 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(yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse 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 yandex.cloud.iot.devices.v1.PublishRegistryDataResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.PublishRegistryDataResponse) yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse.class, yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataResponse_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse build() { yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse buildPartial() { yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse result = new yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse(this); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse) { return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse other) { if (other == yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.PublishRegistryDataResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.PublishRegistryDataResponse) private static final yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse(); } public static yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PublishRegistryDataResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PublishRegistryDataResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryDataServiceOuterClass.PublishRegistryDataResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n7yandex/cloud/iot/devices/v1/registry_d" + "ata_service.proto\022\033yandex.cloud.iot.devi" + "ces.v1\032\034google/api/annotations.proto\032\035ya" + "ndex/cloud/validation.proto\"z\n\032PublishRe" + "gistryDataRequest\022!\n\013registry_id\030\001 \001(\tB\014" + "\350\3071\001\212\3101\004<=50\022\035\n\005topic\030\002 \001(\tB\016\350\3071\001\212\3101\006<=1" + "024\022\032\n\004data\030\003 \001(\014B\014\212\3101\010<=262144\"\035\n\033Publi" + "shRegistryDataResponse2\321\001\n\023RegistryDataS" + "ervice\022\271\001\n\007Publish\0227.yandex.cloud.iot.de" + "vices.v1.PublishRegistryDataRequest\0328.ya" + "ndex.cloud.iot.devices.v1.PublishRegistr" + "yDataResponse\";\202\323\344\223\0025\"0/iot-devices/v1/r" + "egistries/{registry_id}/publish:\001*Bj\n\037ya" + "ndex.cloud.api.iot.devices.v1ZGgithub.co" + "m/yandex-cloud/go-genproto/yandex/cloud/" + "iot/devices/v1;devicesb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), }); internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataRequest_descriptor, new java.lang.String[] { "RegistryId", "Topic", "Data", }); internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_PublishRegistryDataResponse_descriptor, new java.lang.String[] { }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.AnnotationsProto.http); registry.add(yandex.cloud.api.Validation.length); registry.add(yandex.cloud.api.Validation.required); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy