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

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

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

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

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

    /**
     * 
     * ID of the device to return.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device to return.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** *
     * Specifies which parts of the device resource should be returned
     * in the response.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 2; * @return The enum numeric value on the wire for deviceView. */ int getDeviceViewValue(); /** *
     * Specifies which parts of the device resource should be returned
     * in the response.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 2; * @return The deviceView. */ yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView getDeviceView(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.GetDeviceRequest} */ public static final class GetDeviceRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.GetDeviceRequest) GetDeviceRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetDeviceRequest.newBuilder() to construct. private GetDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetDeviceRequest() { deviceId_ = ""; deviceView_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetDeviceRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetDeviceRequest( 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(); deviceId_ = s; break; } case 16: { int rawValue = input.readEnum(); deviceView_ = rawValue; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device to return.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device to return.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEVICE_VIEW_FIELD_NUMBER = 2; private int deviceView_; /** *
     * Specifies which parts of the device resource should be returned
     * in the response.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 2; * @return The enum numeric value on the wire for deviceView. */ @java.lang.Override public int getDeviceViewValue() { return deviceView_; } /** *
     * Specifies which parts of the device resource should be returned
     * in the response.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 2; * @return The deviceView. */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView getDeviceView() { @SuppressWarnings("deprecation") yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView result = yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.valueOf(deviceView_); return result == null ? yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } if (deviceView_ != yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.BASIC.getNumber()) { output.writeEnum(2, deviceView_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } if (deviceView_ != yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.BASIC.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, deviceView_); } 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.DeviceServiceOuterClass.GetDeviceRequest)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest) obj; if (!getDeviceId() .equals(other.getDeviceId())) return false; if (deviceView_ != other.deviceView_) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (37 * hash) + DEVICE_VIEW_FIELD_NUMBER; hash = (53 * hash) + deviceView_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest 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.DeviceServiceOuterClass.GetDeviceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest 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.DeviceServiceOuterClass.GetDeviceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest 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.DeviceServiceOuterClass.GetDeviceRequest 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.DeviceServiceOuterClass.GetDeviceRequest 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.DeviceServiceOuterClass.GetDeviceRequest 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.DeviceServiceOuterClass.GetDeviceRequest 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.DeviceServiceOuterClass.GetDeviceRequest 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.DeviceServiceOuterClass.GetDeviceRequest 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.DeviceServiceOuterClass.GetDeviceRequest 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.GetDeviceRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.GetDeviceRequest) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest.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(); deviceId_ = ""; deviceView_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetDeviceRequest_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest(this); result.deviceId_ = deviceId_; result.deviceView_ = deviceView_; 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.DeviceServiceOuterClass.GetDeviceRequest) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } if (other.deviceView_ != 0) { setDeviceViewValue(other.getDeviceViewValue()); } 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.DeviceServiceOuterClass.GetDeviceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device to return.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device to return.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device to return.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device to return.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device to return.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = value; onChanged(); return this; } private int deviceView_ = 0; /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 2; * @return The enum numeric value on the wire for deviceView. */ @java.lang.Override public int getDeviceViewValue() { return deviceView_; } /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 2; * @param value The enum numeric value on the wire for deviceView to set. * @return This builder for chaining. */ public Builder setDeviceViewValue(int value) { deviceView_ = value; onChanged(); return this; } /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 2; * @return The deviceView. */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView getDeviceView() { @SuppressWarnings("deprecation") yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView result = yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.valueOf(deviceView_); return result == null ? yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.UNRECOGNIZED : result; } /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 2; * @param value The deviceView to set. * @return This builder for chaining. */ public Builder setDeviceView(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView value) { if (value == null) { throw new NullPointerException(); } deviceView_ = value.getNumber(); onChanged(); return this; } /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 2; * @return This builder for chaining. */ public Builder clearDeviceView() { deviceView_ = 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:yandex.cloud.iot.devices.v1.GetDeviceRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.GetDeviceRequest) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetDeviceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetDeviceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetDeviceRequest(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.DeviceServiceOuterClass.GetDeviceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetByNameDeviceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.GetByNameDeviceRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the registry to get device.
     * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
     * 
* * string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The registryId. */ java.lang.String getRegistryId(); /** *
     * ID of the registry to get device.
     * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
     * 
* * string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for registryId. */ com.google.protobuf.ByteString getRegistryIdBytes(); /** *
     * Name of the device to return.
     * To get a device name make a [DeviceService.List] request.
     * 
* * string device_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The deviceName. */ java.lang.String getDeviceName(); /** *
     * Name of the device to return.
     * To get a device name make a [DeviceService.List] request.
     * 
* * string device_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceName. */ com.google.protobuf.ByteString getDeviceNameBytes(); /** *
     * Specifies which parts of the device resource should be returned
     * in the response.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 3; * @return The enum numeric value on the wire for deviceView. */ int getDeviceViewValue(); /** *
     * Specifies which parts of the device resource should be returned
     * in the response.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 3; * @return The deviceView. */ yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView getDeviceView(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.GetByNameDeviceRequest} */ public static final class GetByNameDeviceRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.GetByNameDeviceRequest) GetByNameDeviceRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetByNameDeviceRequest.newBuilder() to construct. private GetByNameDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetByNameDeviceRequest() { registryId_ = ""; deviceName_ = ""; deviceView_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetByNameDeviceRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetByNameDeviceRequest( 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(); deviceName_ = s; break; } case 24: { int rawValue = input.readEnum(); deviceView_ = rawValue; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetByNameDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetByNameDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest.Builder.class); } public static final int REGISTRY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object registryId_; /** *
     * ID of the registry to get device.
     * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
     * 
* * 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 the registry to get device.
     * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
     * 
* * 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 DEVICE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object deviceName_; /** *
     * Name of the device to return.
     * To get a device name make a [DeviceService.List] request.
     * 
* * string device_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The deviceName. */ @java.lang.Override public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; 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(); deviceName_ = s; return s; } } /** *
     * Name of the device to return.
     * To get a device name make a [DeviceService.List] request.
     * 
* * string device_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceName. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEVICE_VIEW_FIELD_NUMBER = 3; private int deviceView_; /** *
     * Specifies which parts of the device resource should be returned
     * in the response.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 3; * @return The enum numeric value on the wire for deviceView. */ @java.lang.Override public int getDeviceViewValue() { return deviceView_; } /** *
     * Specifies which parts of the device resource should be returned
     * in the response.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 3; * @return The deviceView. */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView getDeviceView() { @SuppressWarnings("deprecation") yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView result = yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.valueOf(deviceView_); return result == null ? yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceName_); } if (deviceView_ != yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.BASIC.getNumber()) { output.writeEnum(3, deviceView_); } 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(deviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceName_); } if (deviceView_ != yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.BASIC.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, deviceView_); } 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.DeviceServiceOuterClass.GetByNameDeviceRequest)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest) obj; if (!getRegistryId() .equals(other.getRegistryId())) return false; if (!getDeviceName() .equals(other.getDeviceName())) return false; if (deviceView_ != other.deviceView_) 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) + DEVICE_NAME_FIELD_NUMBER; hash = (53 * hash) + getDeviceName().hashCode(); hash = (37 * hash) + DEVICE_VIEW_FIELD_NUMBER; hash = (53 * hash) + deviceView_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest 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.DeviceServiceOuterClass.GetByNameDeviceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest 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.DeviceServiceOuterClass.GetByNameDeviceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest 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.DeviceServiceOuterClass.GetByNameDeviceRequest 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.DeviceServiceOuterClass.GetByNameDeviceRequest 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.DeviceServiceOuterClass.GetByNameDeviceRequest 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.DeviceServiceOuterClass.GetByNameDeviceRequest 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.DeviceServiceOuterClass.GetByNameDeviceRequest 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.DeviceServiceOuterClass.GetByNameDeviceRequest 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.DeviceServiceOuterClass.GetByNameDeviceRequest 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.GetByNameDeviceRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.GetByNameDeviceRequest) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetByNameDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetByNameDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest.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_ = ""; deviceName_ = ""; deviceView_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetByNameDeviceRequest_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest(this); result.registryId_ = registryId_; result.deviceName_ = deviceName_; result.deviceView_ = deviceView_; 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.DeviceServiceOuterClass.GetByNameDeviceRequest) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest.getDefaultInstance()) return this; if (!other.getRegistryId().isEmpty()) { registryId_ = other.registryId_; onChanged(); } if (!other.getDeviceName().isEmpty()) { deviceName_ = other.deviceName_; onChanged(); } if (other.deviceView_ != 0) { setDeviceViewValue(other.getDeviceViewValue()); } 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.DeviceServiceOuterClass.GetByNameDeviceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object registryId_ = ""; /** *
       * ID of the registry to get device.
       * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * 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 the registry to get device.
       * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * 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 the registry to get device.
       * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * 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 the registry to get device.
       * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * 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 the registry to get device.
       * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * 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 deviceName_ = ""; /** *
       * Name of the device to return.
       * To get a device name make a [DeviceService.List] request.
       * 
* * string device_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The deviceName. */ public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the device to return.
       * To get a device name make a [DeviceService.List] request.
       * 
* * string device_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceName. */ public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the device to return.
       * To get a device name make a [DeviceService.List] request.
       * 
* * string device_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @param value The deviceName to set. * @return This builder for chaining. */ public Builder setDeviceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceName_ = value; onChanged(); return this; } /** *
       * Name of the device to return.
       * To get a device name make a [DeviceService.List] request.
       * 
* * string device_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDeviceName() { deviceName_ = getDefaultInstance().getDeviceName(); onChanged(); return this; } /** *
       * Name of the device to return.
       * To get a device name make a [DeviceService.List] request.
       * 
* * string device_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @param value The bytes for deviceName to set. * @return This builder for chaining. */ public Builder setDeviceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceName_ = value; onChanged(); return this; } private int deviceView_ = 0; /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 3; * @return The enum numeric value on the wire for deviceView. */ @java.lang.Override public int getDeviceViewValue() { return deviceView_; } /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 3; * @param value The enum numeric value on the wire for deviceView to set. * @return This builder for chaining. */ public Builder setDeviceViewValue(int value) { deviceView_ = value; onChanged(); return this; } /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 3; * @return The deviceView. */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView getDeviceView() { @SuppressWarnings("deprecation") yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView result = yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.valueOf(deviceView_); return result == null ? yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.UNRECOGNIZED : result; } /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 3; * @param value The deviceView to set. * @return This builder for chaining. */ public Builder setDeviceView(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView value) { if (value == null) { throw new NullPointerException(); } deviceView_ = value.getNumber(); onChanged(); return this; } /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 3; * @return This builder for chaining. */ public Builder clearDeviceView() { deviceView_ = 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:yandex.cloud.iot.devices.v1.GetByNameDeviceRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.GetByNameDeviceRequest) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.GetByNameDeviceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetByNameDeviceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetByNameDeviceRequest(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.DeviceServiceOuterClass.GetByNameDeviceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListDevicesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListDevicesRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the registry to list devices in.
     * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
     * 
* * string registry_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return Whether the registryId field is set. */ boolean hasRegistryId(); /** *
     * ID of the registry to list devices in.
     * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
     * 
* * string registry_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The registryId. */ java.lang.String getRegistryId(); /** *
     * ID of the registry to list devices in.
     * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
     * 
* * string registry_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for registryId. */ com.google.protobuf.ByteString getRegistryIdBytes(); /** *
     * ID of the folder to list devices in.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return Whether the folderId field is set. */ boolean hasFolderId(); /** *
     * ID of the folder to list devices in.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder to list devices in.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than `page_size`, the service returns a [ListDevicesResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ListDevicesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ListDevicesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); /** *
     * Specifies which parts of the device resource should be returned
     * in the response.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 5; * @return The enum numeric value on the wire for deviceView. */ int getDeviceViewValue(); /** *
     * Specifies which parts of the device resource should be returned
     * in the response.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 5; * @return The deviceView. */ yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView getDeviceView(); public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest.IdCase getIdCase(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.ListDevicesRequest} */ public static final class ListDevicesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListDevicesRequest) ListDevicesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListDevicesRequest.newBuilder() to construct. private ListDevicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListDevicesRequest() { pageToken_ = ""; deviceView_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListDevicesRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListDevicesRequest( 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(); idCase_ = 1; id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); idCase_ = 2; id_ = s; break; } case 24: { pageSize_ = input.readInt64(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = s; break; } case 40: { int rawValue = input.readEnum(); deviceView_ = rawValue; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest.Builder.class); } private int idCase_ = 0; private java.lang.Object id_; public enum IdCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { REGISTRY_ID(1), FOLDER_ID(2), ID_NOT_SET(0); private final int value; private IdCase(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 IdCase valueOf(int value) { return forNumber(value); } public static IdCase forNumber(int value) { switch (value) { case 1: return REGISTRY_ID; case 2: return FOLDER_ID; case 0: return ID_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public IdCase getIdCase() { return IdCase.forNumber( idCase_); } public static final int REGISTRY_ID_FIELD_NUMBER = 1; /** *
     * ID of the registry to list devices in.
     * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
     * 
* * string registry_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return Whether the registryId field is set. */ public boolean hasRegistryId() { return idCase_ == 1; } /** *
     * ID of the registry to list devices in.
     * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
     * 
* * string registry_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The registryId. */ public java.lang.String getRegistryId() { java.lang.Object ref = ""; if (idCase_ == 1) { ref = id_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idCase_ == 1) { id_ = s; } return s; } } /** *
     * ID of the registry to list devices in.
     * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
     * 
* * string registry_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for registryId. */ public com.google.protobuf.ByteString getRegistryIdBytes() { java.lang.Object ref = ""; if (idCase_ == 1) { ref = id_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (idCase_ == 1) { id_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLDER_ID_FIELD_NUMBER = 2; /** *
     * ID of the folder to list devices in.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return Whether the folderId field is set. */ public boolean hasFolderId() { return idCase_ == 2; } /** *
     * ID of the folder to list devices in.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = ""; if (idCase_ == 2) { ref = id_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idCase_ == 2) { id_ = s; } return s; } } /** *
     * ID of the folder to list devices in.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = ""; if (idCase_ == 2) { ref = id_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (idCase_ == 2) { id_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAGE_SIZE_FIELD_NUMBER = 3; private long pageSize_; /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than `page_size`, the service returns a [ListDevicesResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ListDevicesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; 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(); pageToken_ = s; return s; } } /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ListDevicesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEVICE_VIEW_FIELD_NUMBER = 5; private int deviceView_; /** *
     * Specifies which parts of the device resource should be returned
     * in the response.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 5; * @return The enum numeric value on the wire for deviceView. */ @java.lang.Override public int getDeviceViewValue() { return deviceView_; } /** *
     * Specifies which parts of the device resource should be returned
     * in the response.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 5; * @return The deviceView. */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView getDeviceView() { @SuppressWarnings("deprecation") yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView result = yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.valueOf(deviceView_); return result == null ? yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (idCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (idCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } if (pageSize_ != 0L) { output.writeInt64(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } if (deviceView_ != yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.BASIC.getNumber()) { output.writeEnum(5, deviceView_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (idCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (idCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } if (deviceView_ != yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.BASIC.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, deviceView_); } 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.DeviceServiceOuterClass.ListDevicesRequest)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest) obj; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (deviceView_ != other.deviceView_) return false; if (!getIdCase().equals(other.getIdCase())) return false; switch (idCase_) { case 1: if (!getRegistryId() .equals(other.getRegistryId())) return false; break; case 2: if (!getFolderId() .equals(other.getFolderId())) return false; break; case 0: default: } 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) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + DEVICE_VIEW_FIELD_NUMBER; hash = (53 * hash) + deviceView_; switch (idCase_) { case 1: hash = (37 * hash) + REGISTRY_ID_FIELD_NUMBER; hash = (53 * hash) + getRegistryId().hashCode(); break; case 2: hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest 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.DeviceServiceOuterClass.ListDevicesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest 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.DeviceServiceOuterClass.ListDevicesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest 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.DeviceServiceOuterClass.ListDevicesRequest 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.DeviceServiceOuterClass.ListDevicesRequest 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.DeviceServiceOuterClass.ListDevicesRequest 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.DeviceServiceOuterClass.ListDevicesRequest 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.DeviceServiceOuterClass.ListDevicesRequest 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.DeviceServiceOuterClass.ListDevicesRequest 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.DeviceServiceOuterClass.ListDevicesRequest 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.ListDevicesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListDevicesRequest) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest.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(); pageSize_ = 0L; pageToken_ = ""; deviceView_ = 0; idCase_ = 0; id_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicesRequest_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest(this); if (idCase_ == 1) { result.id_ = id_; } if (idCase_ == 2) { result.id_ = id_; } result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.deviceView_ = deviceView_; result.idCase_ = idCase_; 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.DeviceServiceOuterClass.ListDevicesRequest) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest.getDefaultInstance()) return this; if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } if (other.deviceView_ != 0) { setDeviceViewValue(other.getDeviceViewValue()); } switch (other.getIdCase()) { case REGISTRY_ID: { idCase_ = 1; id_ = other.id_; onChanged(); break; } case FOLDER_ID: { idCase_ = 2; id_ = other.id_; onChanged(); break; } case ID_NOT_SET: { break; } } 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.DeviceServiceOuterClass.ListDevicesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int idCase_ = 0; private java.lang.Object id_; public IdCase getIdCase() { return IdCase.forNumber( idCase_); } public Builder clearId() { idCase_ = 0; id_ = null; onChanged(); return this; } /** *
       * ID of the registry to list devices in.
       * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * string registry_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return Whether the registryId field is set. */ @java.lang.Override public boolean hasRegistryId() { return idCase_ == 1; } /** *
       * ID of the registry to list devices in.
       * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * string registry_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The registryId. */ @java.lang.Override public java.lang.String getRegistryId() { java.lang.Object ref = ""; if (idCase_ == 1) { ref = id_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idCase_ == 1) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the registry to list devices in.
       * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * string registry_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for registryId. */ @java.lang.Override public com.google.protobuf.ByteString getRegistryIdBytes() { java.lang.Object ref = ""; if (idCase_ == 1) { ref = id_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (idCase_ == 1) { id_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the registry to list devices in.
       * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * string registry_id = 1 [(.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(); } idCase_ = 1; id_ = value; onChanged(); return this; } /** *
       * ID of the registry to list devices in.
       * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * string registry_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearRegistryId() { if (idCase_ == 1) { idCase_ = 0; id_ = null; onChanged(); } return this; } /** *
       * ID of the registry to list devices in.
       * To get a registry ID make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * string registry_id = 1 [(.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); idCase_ = 1; id_ = value; onChanged(); return this; } /** *
       * ID of the folder to list devices in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return Whether the folderId field is set. */ @java.lang.Override public boolean hasFolderId() { return idCase_ == 2; } /** *
       * ID of the folder to list devices in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = ""; if (idCase_ == 2) { ref = id_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idCase_ == 2) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the folder to list devices in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = ""; if (idCase_ == 2) { ref = id_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (idCase_ == 2) { id_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the folder to list devices in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 2 [(.yandex.cloud.length) = "<=50"]; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } idCase_ = 2; id_ = value; onChanged(); return this; } /** *
       * ID of the folder to list devices in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 2 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearFolderId() { if (idCase_ == 2) { idCase_ = 0; id_ = null; onChanged(); } return this; } /** *
       * ID of the folder to list devices in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 2 [(.yandex.cloud.length) = "<=50"]; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); idCase_ = 2; id_ = value; onChanged(); return this; } private long pageSize_ ; /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than `page_size`, the service returns a [ListDevicesResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than `page_size`, the service returns a [ListDevicesResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; } /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than `page_size`, the service returns a [ListDevicesResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListDevicesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListDevicesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListDevicesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @param value The pageToken to set. * @return This builder for chaining. */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListDevicesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListDevicesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; } private int deviceView_ = 0; /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 5; * @return The enum numeric value on the wire for deviceView. */ @java.lang.Override public int getDeviceViewValue() { return deviceView_; } /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 5; * @param value The enum numeric value on the wire for deviceView to set. * @return This builder for chaining. */ public Builder setDeviceViewValue(int value) { deviceView_ = value; onChanged(); return this; } /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 5; * @return The deviceView. */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView getDeviceView() { @SuppressWarnings("deprecation") yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView result = yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.valueOf(deviceView_); return result == null ? yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView.UNRECOGNIZED : result; } /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 5; * @param value The deviceView to set. * @return This builder for chaining. */ public Builder setDeviceView(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceView value) { if (value == null) { throw new NullPointerException(); } deviceView_ = value.getNumber(); onChanged(); return this; } /** *
       * Specifies which parts of the device resource should be returned
       * in the response.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceView device_view = 5; * @return This builder for chaining. */ public Builder clearDeviceView() { deviceView_ = 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:yandex.cloud.iot.devices.v1.ListDevicesRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListDevicesRequest) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListDevicesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListDevicesRequest(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.DeviceServiceOuterClass.ListDevicesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListDevicesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListDevicesResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of devices.
     * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ java.util.List getDevicesList(); /** *
     * List of devices.
     * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device getDevices(int index); /** *
     * List of devices.
     * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ int getDevicesCount(); /** *
     * List of devices.
     * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ java.util.List getDevicesOrBuilderList(); /** *
     * List of devices.
     * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceOrBuilder getDevicesOrBuilder( int index); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListDevicesRequest.page_size], use `next_page_token` as the value
     * for the [ListDevicesRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListDevicesRequest.page_size], use `next_page_token` as the value
     * for the [ListDevicesRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.ListDevicesResponse} */ public static final class ListDevicesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListDevicesResponse) ListDevicesResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListDevicesResponse.newBuilder() to construct. private ListDevicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListDevicesResponse() { devices_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListDevicesResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListDevicesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { devices_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } devices_.add( input.readMessage(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = s; 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { devices_ = java.util.Collections.unmodifiableList(devices_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse.Builder.class); } public static final int DEVICES_FIELD_NUMBER = 1; private java.util.List devices_; /** *
     * List of devices.
     * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ @java.lang.Override public java.util.List getDevicesList() { return devices_; } /** *
     * List of devices.
     * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ @java.lang.Override public java.util.List getDevicesOrBuilderList() { return devices_; } /** *
     * List of devices.
     * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ @java.lang.Override public int getDevicesCount() { return devices_.size(); } /** *
     * List of devices.
     * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device getDevices(int index) { return devices_.get(index); } /** *
     * List of devices.
     * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceOrBuilder getDevicesOrBuilder( int index) { return devices_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListDevicesRequest.page_size], use `next_page_token` as the value
     * for the [ListDevicesRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; } } /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListDevicesRequest.page_size], use `next_page_token` as the value
     * for the [ListDevicesRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = 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 { for (int i = 0; i < devices_.size(); i++) { output.writeMessage(1, devices_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < devices_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, devices_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } 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.DeviceServiceOuterClass.ListDevicesResponse)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse) obj; if (!getDevicesList() .equals(other.getDevicesList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getDevicesCount() > 0) { hash = (37 * hash) + DEVICES_FIELD_NUMBER; hash = (53 * hash) + getDevicesList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse 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.DeviceServiceOuterClass.ListDevicesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse 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.DeviceServiceOuterClass.ListDevicesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse 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.DeviceServiceOuterClass.ListDevicesResponse 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.DeviceServiceOuterClass.ListDevicesResponse 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.DeviceServiceOuterClass.ListDevicesResponse 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.DeviceServiceOuterClass.ListDevicesResponse 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.DeviceServiceOuterClass.ListDevicesResponse 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.DeviceServiceOuterClass.ListDevicesResponse 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.DeviceServiceOuterClass.ListDevicesResponse 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.ListDevicesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListDevicesResponse) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDevicesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (devicesBuilder_ == null) { devices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { devicesBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicesResponse_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse(this); int from_bitField0_ = bitField0_; if (devicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { devices_ = java.util.Collections.unmodifiableList(devices_); bitField0_ = (bitField0_ & ~0x00000001); } result.devices_ = devices_; } else { result.devices_ = devicesBuilder_.build(); } result.nextPageToken_ = nextPageToken_; 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.DeviceServiceOuterClass.ListDevicesResponse) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse.getDefaultInstance()) return this; if (devicesBuilder_ == null) { if (!other.devices_.isEmpty()) { if (devices_.isEmpty()) { devices_ = other.devices_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDevicesIsMutable(); devices_.addAll(other.devices_); } onChanged(); } } else { if (!other.devices_.isEmpty()) { if (devicesBuilder_.isEmpty()) { devicesBuilder_.dispose(); devicesBuilder_ = null; devices_ = other.devices_; bitField0_ = (bitField0_ & ~0x00000001); devicesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDevicesFieldBuilder() : null; } else { devicesBuilder_.addAllMessages(other.devices_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List devices_ = java.util.Collections.emptyList(); private void ensureDevicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { devices_ = new java.util.ArrayList(devices_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Builder, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceOrBuilder> devicesBuilder_; /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public java.util.List getDevicesList() { if (devicesBuilder_ == null) { return java.util.Collections.unmodifiableList(devices_); } else { return devicesBuilder_.getMessageList(); } } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public int getDevicesCount() { if (devicesBuilder_ == null) { return devices_.size(); } else { return devicesBuilder_.getCount(); } } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device getDevices(int index) { if (devicesBuilder_ == null) { return devices_.get(index); } else { return devicesBuilder_.getMessage(index); } } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public Builder setDevices( int index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device value) { if (devicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDevicesIsMutable(); devices_.set(index, value); onChanged(); } else { devicesBuilder_.setMessage(index, value); } return this; } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public Builder setDevices( int index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Builder builderForValue) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); devices_.set(index, builderForValue.build()); onChanged(); } else { devicesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public Builder addDevices(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device value) { if (devicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDevicesIsMutable(); devices_.add(value); onChanged(); } else { devicesBuilder_.addMessage(value); } return this; } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public Builder addDevices( int index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device value) { if (devicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDevicesIsMutable(); devices_.add(index, value); onChanged(); } else { devicesBuilder_.addMessage(index, value); } return this; } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public Builder addDevices( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Builder builderForValue) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); devices_.add(builderForValue.build()); onChanged(); } else { devicesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public Builder addDevices( int index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Builder builderForValue) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); devices_.add(index, builderForValue.build()); onChanged(); } else { devicesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public Builder addAllDevices( java.lang.Iterable values) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, devices_); onChanged(); } else { devicesBuilder_.addAllMessages(values); } return this; } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public Builder clearDevices() { if (devicesBuilder_ == null) { devices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { devicesBuilder_.clear(); } return this; } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public Builder removeDevices(int index) { if (devicesBuilder_ == null) { ensureDevicesIsMutable(); devices_.remove(index); onChanged(); } else { devicesBuilder_.remove(index); } return this; } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Builder getDevicesBuilder( int index) { return getDevicesFieldBuilder().getBuilder(index); } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceOrBuilder getDevicesOrBuilder( int index) { if (devicesBuilder_ == null) { return devices_.get(index); } else { return devicesBuilder_.getMessageOrBuilder(index); } } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public java.util.List getDevicesOrBuilderList() { if (devicesBuilder_ != null) { return devicesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(devices_); } } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Builder addDevicesBuilder() { return getDevicesFieldBuilder().addBuilder( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.getDefaultInstance()); } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Builder addDevicesBuilder( int index) { return getDevicesFieldBuilder().addBuilder( index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.getDefaultInstance()); } /** *
       * List of devices.
       * 
* * repeated .yandex.cloud.iot.devices.v1.Device devices = 1; */ public java.util.List getDevicesBuilderList() { return getDevicesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Builder, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceOrBuilder> getDevicesFieldBuilder() { if (devicesBuilder_ == null) { devicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Builder, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceOrBuilder>( devices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); devices_ = null; } return devicesBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListDevicesRequest.page_size], use `next_page_token` as the value
       * for the [ListDevicesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListDevicesRequest.page_size], use `next_page_token` as the value
       * for the [ListDevicesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListDevicesRequest.page_size], use `next_page_token` as the value
       * for the [ListDevicesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListDevicesRequest.page_size], use `next_page_token` as the value
       * for the [ListDevicesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListDevicesRequest.page_size], use `next_page_token` as the value
       * for the [ListDevicesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = 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:yandex.cloud.iot.devices.v1.ListDevicesResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListDevicesResponse) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListDevicesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListDevicesResponse(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.DeviceServiceOuterClass.ListDevicesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateDeviceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.CreateDeviceRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the registry to create a device in.
     * To get a registry ID, make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
     * 
* * string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The registryId. */ java.lang.String getRegistryId(); /** *
     * ID of the registry to create a device in.
     * To get a registry ID, make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
     * 
* * string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for registryId. */ com.google.protobuf.ByteString getRegistryIdBytes(); /** *
     * Name of the device. The name must be unique within the registry.
     * 
* * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The name. */ java.lang.String getName(); /** *
     * Name of the device. The name must be unique within the registry.
     * 
* * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the device.
     * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the device.
     * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Device certificate.
     * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ java.util.List getCertificatesList(); /** *
     * Device certificate.
     * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate getCertificates(int index); /** *
     * Device certificate.
     * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ int getCertificatesCount(); /** *
     * Device certificate.
     * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ java.util.List getCertificatesOrBuilderList(); /** *
     * Device certificate.
     * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.CertificateOrBuilder getCertificatesOrBuilder( int index); /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ int getTopicAliasesCount(); /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ boolean containsTopicAliases( java.lang.String key); /** * Use {@link #getTopicAliasesMap()} instead. */ @java.lang.Deprecated java.util.Map getTopicAliases(); /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ java.util.Map getTopicAliasesMap(); /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ java.lang.String getTopicAliasesOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ java.lang.String getTopicAliasesOrThrow( java.lang.String key); /** *
     * Device password.
     * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
     * 
* * string password = 6; * @return The password. */ java.lang.String getPassword(); /** *
     * Device password.
     * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
     * 
* * string password = 6; * @return The bytes for password. */ com.google.protobuf.ByteString getPasswordBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.CreateDeviceRequest} */ public static final class CreateDeviceRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.CreateDeviceRequest) CreateDeviceRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CreateDeviceRequest.newBuilder() to construct. private CreateDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateDeviceRequest() { registryId_ = ""; name_ = ""; description_ = ""; certificates_ = java.util.Collections.emptyList(); password_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateDeviceRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateDeviceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); registryId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { certificates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } certificates_.add( input.readMessage(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.parser(), extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { topicAliases_ = com.google.protobuf.MapField.newMapField( TopicAliasesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry topicAliases__ = input.readMessage( TopicAliasesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); topicAliases_.getMutableMap().put( topicAliases__.getKey(), topicAliases__.getValue()); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); password_ = s; 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { certificates_ = java.util.Collections.unmodifiableList(certificates_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetTopicAliases(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Builder.class); } public interface CertificateOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate) com.google.protobuf.MessageOrBuilder { /** *
       * Public part of the device certificate.
       * 
* * string certificate_data = 1; * @return The certificateData. */ java.lang.String getCertificateData(); /** *
       * Public part of the device certificate.
       * 
* * string certificate_data = 1; * @return The bytes for certificateData. */ com.google.protobuf.ByteString getCertificateDataBytes(); } /** *
     * Specification of a device certificate.
     * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate} */ public static final class Certificate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate) CertificateOrBuilder { private static final long serialVersionUID = 0L; // Use Certificate.newBuilder() to construct. private Certificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Certificate() { certificateData_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Certificate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Certificate( 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(); certificateData_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_Certificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_Certificate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.Builder.class); } public static final int CERTIFICATE_DATA_FIELD_NUMBER = 1; private volatile java.lang.Object certificateData_; /** *
       * Public part of the device certificate.
       * 
* * string certificate_data = 1; * @return The certificateData. */ @java.lang.Override public java.lang.String getCertificateData() { java.lang.Object ref = certificateData_; 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(); certificateData_ = s; return s; } } /** *
       * Public part of the device certificate.
       * 
* * string certificate_data = 1; * @return The bytes for certificateData. */ @java.lang.Override public com.google.protobuf.ByteString getCertificateDataBytes() { java.lang.Object ref = certificateData_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); certificateData_ = 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(certificateData_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, certificateData_); } 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(certificateData_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, certificateData_); } 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.DeviceServiceOuterClass.CreateDeviceRequest.Certificate)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate) obj; if (!getCertificateData() .equals(other.getCertificateData())) 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) + CERTIFICATE_DATA_FIELD_NUMBER; hash = (53 * hash) + getCertificateData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate 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.DeviceServiceOuterClass.CreateDeviceRequest.Certificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate 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.DeviceServiceOuterClass.CreateDeviceRequest.Certificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate 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.DeviceServiceOuterClass.CreateDeviceRequest.Certificate 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.DeviceServiceOuterClass.CreateDeviceRequest.Certificate 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.DeviceServiceOuterClass.CreateDeviceRequest.Certificate 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.DeviceServiceOuterClass.CreateDeviceRequest.Certificate 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.DeviceServiceOuterClass.CreateDeviceRequest.Certificate 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.DeviceServiceOuterClass.CreateDeviceRequest.Certificate 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.DeviceServiceOuterClass.CreateDeviceRequest.Certificate 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; } /** *
       * Specification of a device certificate.
       * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.CertificateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_Certificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_Certificate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.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(); certificateData_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_Certificate_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate(this); result.certificateData_ = certificateData_; 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.DeviceServiceOuterClass.CreateDeviceRequest.Certificate) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.getDefaultInstance()) return this; if (!other.getCertificateData().isEmpty()) { certificateData_ = other.certificateData_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object certificateData_ = ""; /** *
         * Public part of the device certificate.
         * 
* * string certificate_data = 1; * @return The certificateData. */ public java.lang.String getCertificateData() { java.lang.Object ref = certificateData_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateData_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Public part of the device certificate.
         * 
* * string certificate_data = 1; * @return The bytes for certificateData. */ public com.google.protobuf.ByteString getCertificateDataBytes() { java.lang.Object ref = certificateData_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); certificateData_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Public part of the device certificate.
         * 
* * string certificate_data = 1; * @param value The certificateData to set. * @return This builder for chaining. */ public Builder setCertificateData( java.lang.String value) { if (value == null) { throw new NullPointerException(); } certificateData_ = value; onChanged(); return this; } /** *
         * Public part of the device certificate.
         * 
* * string certificate_data = 1; * @return This builder for chaining. */ public Builder clearCertificateData() { certificateData_ = getDefaultInstance().getCertificateData(); onChanged(); return this; } /** *
         * Public part of the device certificate.
         * 
* * string certificate_data = 1; * @param value The bytes for certificateData to set. * @return This builder for chaining. */ public Builder setCertificateDataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); certificateData_ = 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:yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Certificate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Certificate(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.DeviceServiceOuterClass.CreateDeviceRequest.Certificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int REGISTRY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object registryId_; /** *
     * ID of the registry to create a device in.
     * To get a registry ID, make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
     * 
* * 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 the registry to create a device in.
     * To get a registry ID, make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
     * 
* * 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 NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * Name of the device. The name must be unique within the registry.
     * 
* * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the device. The name must be unique within the registry.
     * 
* * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** *
     * Description of the device.
     * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** *
     * Description of the device.
     * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CERTIFICATES_FIELD_NUMBER = 4; private java.util.List certificates_; /** *
     * Device certificate.
     * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ @java.lang.Override public java.util.List getCertificatesList() { return certificates_; } /** *
     * Device certificate.
     * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ @java.lang.Override public java.util.List getCertificatesOrBuilderList() { return certificates_; } /** *
     * Device certificate.
     * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ @java.lang.Override public int getCertificatesCount() { return certificates_.size(); } /** *
     * Device certificate.
     * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate getCertificates(int index) { return certificates_.get(index); } /** *
     * Device certificate.
     * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.CertificateOrBuilder getCertificatesOrBuilder( int index) { return certificates_.get(index); } public static final int TOPIC_ALIASES_FIELD_NUMBER = 5; private static final class TopicAliasesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_TopicAliasesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> topicAliases_; private com.google.protobuf.MapField internalGetTopicAliases() { if (topicAliases_ == null) { return com.google.protobuf.MapField.emptyMapField( TopicAliasesDefaultEntryHolder.defaultEntry); } return topicAliases_; } public int getTopicAliasesCount() { return internalGetTopicAliases().getMap().size(); } /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public boolean containsTopicAliases( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTopicAliases().getMap().containsKey(key); } /** * Use {@link #getTopicAliasesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTopicAliases() { return getTopicAliasesMap(); } /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public java.util.Map getTopicAliasesMap() { return internalGetTopicAliases().getMap(); } /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public java.lang.String getTopicAliasesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTopicAliases().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public java.lang.String getTopicAliasesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTopicAliases().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int PASSWORD_FIELD_NUMBER = 6; private volatile java.lang.Object password_; /** *
     * Device password.
     * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
     * 
* * string password = 6; * @return The password. */ @java.lang.Override public java.lang.String getPassword() { java.lang.Object ref = password_; 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(); password_ = s; return s; } } /** *
     * Device password.
     * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
     * 
* * string password = 6; * @return The bytes for password. */ @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = 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(registryId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } for (int i = 0; i < certificates_.size(); i++) { output.writeMessage(4, certificates_.get(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetTopicAliases(), TopicAliasesDefaultEntryHolder.defaultEntry, 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, password_); } 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < certificates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, certificates_.get(i)); } for (java.util.Map.Entry entry : internalGetTopicAliases().getMap().entrySet()) { com.google.protobuf.MapEntry topicAliases__ = TopicAliasesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, topicAliases__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, password_); } 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.DeviceServiceOuterClass.CreateDeviceRequest)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest) obj; if (!getRegistryId() .equals(other.getRegistryId())) return false; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getCertificatesList() .equals(other.getCertificatesList())) return false; if (!internalGetTopicAliases().equals( other.internalGetTopicAliases())) return false; if (!getPassword() .equals(other.getPassword())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (getCertificatesCount() > 0) { hash = (37 * hash) + CERTIFICATES_FIELD_NUMBER; hash = (53 * hash) + getCertificatesList().hashCode(); } if (!internalGetTopicAliases().getMap().isEmpty()) { hash = (37 * hash) + TOPIC_ALIASES_FIELD_NUMBER; hash = (53 * hash) + internalGetTopicAliases().hashCode(); } hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest 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.DeviceServiceOuterClass.CreateDeviceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest 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.DeviceServiceOuterClass.CreateDeviceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest 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.DeviceServiceOuterClass.CreateDeviceRequest 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.DeviceServiceOuterClass.CreateDeviceRequest 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.DeviceServiceOuterClass.CreateDeviceRequest 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.DeviceServiceOuterClass.CreateDeviceRequest 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.DeviceServiceOuterClass.CreateDeviceRequest 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.DeviceServiceOuterClass.CreateDeviceRequest 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.DeviceServiceOuterClass.CreateDeviceRequest 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.CreateDeviceRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.CreateDeviceRequest) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetTopicAliases(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableTopicAliases(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCertificatesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); registryId_ = ""; name_ = ""; description_ = ""; if (certificatesBuilder_ == null) { certificates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { certificatesBuilder_.clear(); } internalGetMutableTopicAliases().clear(); password_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest(this); int from_bitField0_ = bitField0_; result.registryId_ = registryId_; result.name_ = name_; result.description_ = description_; if (certificatesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { certificates_ = java.util.Collections.unmodifiableList(certificates_); bitField0_ = (bitField0_ & ~0x00000001); } result.certificates_ = certificates_; } else { result.certificates_ = certificatesBuilder_.build(); } result.topicAliases_ = internalGetTopicAliases(); result.topicAliases_.makeImmutable(); result.password_ = password_; 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.DeviceServiceOuterClass.CreateDeviceRequest) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.getDefaultInstance()) return this; if (!other.getRegistryId().isEmpty()) { registryId_ = other.registryId_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (certificatesBuilder_ == null) { if (!other.certificates_.isEmpty()) { if (certificates_.isEmpty()) { certificates_ = other.certificates_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCertificatesIsMutable(); certificates_.addAll(other.certificates_); } onChanged(); } } else { if (!other.certificates_.isEmpty()) { if (certificatesBuilder_.isEmpty()) { certificatesBuilder_.dispose(); certificatesBuilder_ = null; certificates_ = other.certificates_; bitField0_ = (bitField0_ & ~0x00000001); certificatesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCertificatesFieldBuilder() : null; } else { certificatesBuilder_.addAllMessages(other.certificates_); } } } internalGetMutableTopicAliases().mergeFrom( other.internalGetTopicAliases()); if (!other.getPassword().isEmpty()) { password_ = other.password_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object registryId_ = ""; /** *
       * ID of the registry to create a device in.
       * To get a registry ID, make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * 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 the registry to create a device in.
       * To get a registry ID, make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * 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 the registry to create a device in.
       * To get a registry ID, make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * 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 the registry to create a device in.
       * To get a registry ID, make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * 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 the registry to create a device in.
       * To get a registry ID, make a [yandex.cloud.iot.devices.v1.RegistryService.List] request.
       * 
* * 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 name_ = ""; /** *
       * Name of the device. The name must be unique within the registry.
       * 
* * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the device. The name must be unique within the registry.
       * 
* * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the device. The name must be unique within the registry.
       * 
* * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the device. The name must be unique within the registry.
       * 
* * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the device. The name must be unique within the registry.
       * 
* * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the device.
       * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the device.
       * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the device.
       * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the device.
       * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the device.
       * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.util.List certificates_ = java.util.Collections.emptyList(); private void ensureCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { certificates_ = new java.util.ArrayList(certificates_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.Builder, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.CertificateOrBuilder> certificatesBuilder_; /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public java.util.List getCertificatesList() { if (certificatesBuilder_ == null) { return java.util.Collections.unmodifiableList(certificates_); } else { return certificatesBuilder_.getMessageList(); } } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public int getCertificatesCount() { if (certificatesBuilder_ == null) { return certificates_.size(); } else { return certificatesBuilder_.getCount(); } } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate getCertificates(int index) { if (certificatesBuilder_ == null) { return certificates_.get(index); } else { return certificatesBuilder_.getMessage(index); } } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public Builder setCertificates( int index, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate value) { if (certificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCertificatesIsMutable(); certificates_.set(index, value); onChanged(); } else { certificatesBuilder_.setMessage(index, value); } return this; } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public Builder setCertificates( int index, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.Builder builderForValue) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.set(index, builderForValue.build()); onChanged(); } else { certificatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public Builder addCertificates(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate value) { if (certificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCertificatesIsMutable(); certificates_.add(value); onChanged(); } else { certificatesBuilder_.addMessage(value); } return this; } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public Builder addCertificates( int index, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate value) { if (certificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCertificatesIsMutable(); certificates_.add(index, value); onChanged(); } else { certificatesBuilder_.addMessage(index, value); } return this; } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public Builder addCertificates( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.Builder builderForValue) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.add(builderForValue.build()); onChanged(); } else { certificatesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public Builder addCertificates( int index, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.Builder builderForValue) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.add(index, builderForValue.build()); onChanged(); } else { certificatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public Builder addAllCertificates( java.lang.Iterable values) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, certificates_); onChanged(); } else { certificatesBuilder_.addAllMessages(values); } return this; } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public Builder clearCertificates() { if (certificatesBuilder_ == null) { certificates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { certificatesBuilder_.clear(); } return this; } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public Builder removeCertificates(int index) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.remove(index); onChanged(); } else { certificatesBuilder_.remove(index); } return this; } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.Builder getCertificatesBuilder( int index) { return getCertificatesFieldBuilder().getBuilder(index); } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.CertificateOrBuilder getCertificatesOrBuilder( int index) { if (certificatesBuilder_ == null) { return certificates_.get(index); } else { return certificatesBuilder_.getMessageOrBuilder(index); } } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public java.util.List getCertificatesOrBuilderList() { if (certificatesBuilder_ != null) { return certificatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(certificates_); } } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.Builder addCertificatesBuilder() { return getCertificatesFieldBuilder().addBuilder( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.getDefaultInstance()); } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.Builder addCertificatesBuilder( int index) { return getCertificatesFieldBuilder().addBuilder( index, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.getDefaultInstance()); } /** *
       * Device certificate.
       * 
* * repeated .yandex.cloud.iot.devices.v1.CreateDeviceRequest.Certificate certificates = 4; */ public java.util.List getCertificatesBuilderList() { return getCertificatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.Builder, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.CertificateOrBuilder> getCertificatesFieldBuilder() { if (certificatesBuilder_ == null) { certificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.Certificate.Builder, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest.CertificateOrBuilder>( certificates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); certificates_ = null; } return certificatesBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> topicAliases_; private com.google.protobuf.MapField internalGetTopicAliases() { if (topicAliases_ == null) { return com.google.protobuf.MapField.emptyMapField( TopicAliasesDefaultEntryHolder.defaultEntry); } return topicAliases_; } private com.google.protobuf.MapField internalGetMutableTopicAliases() { onChanged();; if (topicAliases_ == null) { topicAliases_ = com.google.protobuf.MapField.newMapField( TopicAliasesDefaultEntryHolder.defaultEntry); } if (!topicAliases_.isMutable()) { topicAliases_ = topicAliases_.copy(); } return topicAliases_; } public int getTopicAliasesCount() { return internalGetTopicAliases().getMap().size(); } /** *
       * Alias of a device topic.
       * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
       * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public boolean containsTopicAliases( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTopicAliases().getMap().containsKey(key); } /** * Use {@link #getTopicAliasesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTopicAliases() { return getTopicAliasesMap(); } /** *
       * Alias of a device topic.
       * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
       * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public java.util.Map getTopicAliasesMap() { return internalGetTopicAliases().getMap(); } /** *
       * Alias of a device topic.
       * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
       * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public java.lang.String getTopicAliasesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTopicAliases().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Alias of a device topic.
       * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
       * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public java.lang.String getTopicAliasesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTopicAliases().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearTopicAliases() { internalGetMutableTopicAliases().getMutableMap() .clear(); return this; } /** *
       * Alias of a device topic.
       * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
       * 
* * map<string, string> topic_aliases = 5; */ public Builder removeTopicAliases( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableTopicAliases().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTopicAliases() { return internalGetMutableTopicAliases().getMutableMap(); } /** *
       * Alias of a device topic.
       * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
       * 
* * map<string, string> topic_aliases = 5; */ public Builder putTopicAliases( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableTopicAliases().getMutableMap() .put(key, value); return this; } /** *
       * Alias of a device topic.
       * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
       * 
* * map<string, string> topic_aliases = 5; */ public Builder putAllTopicAliases( java.util.Map values) { internalGetMutableTopicAliases().getMutableMap() .putAll(values); return this; } private java.lang.Object password_ = ""; /** *
       * Device password.
       * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
       * 
* * string password = 6; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Device password.
       * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
       * 
* * string password = 6; * @return The bytes for password. */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Device password.
       * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
       * 
* * string password = 6; * @param value The password to set. * @return This builder for chaining. */ public Builder setPassword( java.lang.String value) { if (value == null) { throw new NullPointerException(); } password_ = value; onChanged(); return this; } /** *
       * Device password.
       * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
       * 
* * string password = 6; * @return This builder for chaining. */ public Builder clearPassword() { password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** *
       * Device password.
       * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
       * 
* * string password = 6; * @param value The bytes for password to set. * @return This builder for chaining. */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = 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:yandex.cloud.iot.devices.v1.CreateDeviceRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.CreateDeviceRequest) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateDeviceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateDeviceRequest(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.DeviceServiceOuterClass.CreateDeviceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateDeviceMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.CreateDeviceMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device that is being created.
     * 
* * string device_id = 1; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device that is being created.
     * 
* * string device_id = 1; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.CreateDeviceMetadata} */ public static final class CreateDeviceMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.CreateDeviceMetadata) CreateDeviceMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use CreateDeviceMetadata.newBuilder() to construct. private CreateDeviceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateDeviceMetadata() { deviceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateDeviceMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateDeviceMetadata( 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(); deviceId_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device that is being created.
     * 
* * string device_id = 1; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device that is being created.
     * 
* * string device_id = 1; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } 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.DeviceServiceOuterClass.CreateDeviceMetadata)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata) obj; if (!getDeviceId() .equals(other.getDeviceId())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata 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.DeviceServiceOuterClass.CreateDeviceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata 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.DeviceServiceOuterClass.CreateDeviceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata 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.DeviceServiceOuterClass.CreateDeviceMetadata 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.DeviceServiceOuterClass.CreateDeviceMetadata 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.DeviceServiceOuterClass.CreateDeviceMetadata 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.DeviceServiceOuterClass.CreateDeviceMetadata 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.DeviceServiceOuterClass.CreateDeviceMetadata 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.DeviceServiceOuterClass.CreateDeviceMetadata 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.DeviceServiceOuterClass.CreateDeviceMetadata 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.CreateDeviceMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.CreateDeviceMetadata) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata.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(); deviceId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateDeviceMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata(this); result.deviceId_ = deviceId_; 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.DeviceServiceOuterClass.CreateDeviceMetadata) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device that is being created.
       * 
* * string device_id = 1; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device that is being created.
       * 
* * string device_id = 1; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device that is being created.
       * 
* * string device_id = 1; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device that is being created.
       * 
* * string device_id = 1; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device that is being created.
       * 
* * string device_id = 1; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = 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:yandex.cloud.iot.devices.v1.CreateDeviceMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.CreateDeviceMetadata) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.CreateDeviceMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateDeviceMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateDeviceMetadata(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.DeviceServiceOuterClass.CreateDeviceMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateDeviceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.UpdateDeviceRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device to update.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device to update.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** *
     * Field mask that specifies which fields of the device are going to be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** *
     * Field mask that specifies which fields of the device are going to be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** *
     * Field mask that specifies which fields of the device are going to be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** *
     * Name of the device. The name must be unique within the registry.
     * 
* * string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The name. */ java.lang.String getName(); /** *
     * Name of the device. The name must be unique within the registry.
     * 
* * string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the device.
     * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the device.
     * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ int getTopicAliasesCount(); /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ boolean containsTopicAliases( java.lang.String key); /** * Use {@link #getTopicAliasesMap()} instead. */ @java.lang.Deprecated java.util.Map getTopicAliases(); /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ java.util.Map getTopicAliasesMap(); /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ java.lang.String getTopicAliasesOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ java.lang.String getTopicAliasesOrThrow( java.lang.String key); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.UpdateDeviceRequest} */ public static final class UpdateDeviceRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.UpdateDeviceRequest) UpdateDeviceRequestOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateDeviceRequest.newBuilder() to construct. private UpdateDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateDeviceRequest() { deviceId_ = ""; name_ = ""; description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateDeviceRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateDeviceRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); deviceId_ = s; break; } case 18: { com.google.protobuf.FieldMask.Builder subBuilder = null; if (updateMask_ != null) { subBuilder = updateMask_.toBuilder(); } updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(updateMask_); updateMask_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { topicAliases_ = com.google.protobuf.MapField.newMapField( TopicAliasesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry topicAliases__ = input.readMessage( TopicAliasesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); topicAliases_.getMutableMap().put( topicAliases__.getKey(), topicAliases__.getValue()); 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetTopicAliases(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device to update.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device to update.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** *
     * Field mask that specifies which fields of the device are going to be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return Whether the updateMask field is set. */ @java.lang.Override public boolean hasUpdateMask() { return updateMask_ != null; } /** *
     * Field mask that specifies which fields of the device are going to be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return The updateMask. */ @java.lang.Override public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** *
     * Field mask that specifies which fields of the device are going to be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
     * Name of the device. The name must be unique within the registry.
     * 
* * string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the device. The name must be unique within the registry.
     * 
* * string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** *
     * Description of the device.
     * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** *
     * Description of the device.
     * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOPIC_ALIASES_FIELD_NUMBER = 5; private static final class TopicAliasesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_TopicAliasesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> topicAliases_; private com.google.protobuf.MapField internalGetTopicAliases() { if (topicAliases_ == null) { return com.google.protobuf.MapField.emptyMapField( TopicAliasesDefaultEntryHolder.defaultEntry); } return topicAliases_; } public int getTopicAliasesCount() { return internalGetTopicAliases().getMap().size(); } /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public boolean containsTopicAliases( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTopicAliases().getMap().containsKey(key); } /** * Use {@link #getTopicAliasesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTopicAliases() { return getTopicAliasesMap(); } /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public java.util.Map getTopicAliasesMap() { return internalGetTopicAliases().getMap(); } /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public java.lang.String getTopicAliasesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTopicAliases().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Alias of a device topic.
     * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
     * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public java.lang.String getTopicAliasesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTopicAliases().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetTopicAliases(), TopicAliasesDefaultEntryHolder.defaultEntry, 5); 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } for (java.util.Map.Entry entry : internalGetTopicAliases().getMap().entrySet()) { com.google.protobuf.MapEntry topicAliases__ = TopicAliasesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, topicAliases__); } 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.DeviceServiceOuterClass.UpdateDeviceRequest)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest) obj; if (!getDeviceId() .equals(other.getDeviceId())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { if (!getUpdateMask() .equals(other.getUpdateMask())) return false; } if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetTopicAliases().equals( other.internalGetTopicAliases())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); if (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetTopicAliases().getMap().isEmpty()) { hash = (37 * hash) + TOPIC_ALIASES_FIELD_NUMBER; hash = (53 * hash) + internalGetTopicAliases().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest 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.DeviceServiceOuterClass.UpdateDeviceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest 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.DeviceServiceOuterClass.UpdateDeviceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest 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.DeviceServiceOuterClass.UpdateDeviceRequest 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.DeviceServiceOuterClass.UpdateDeviceRequest 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.DeviceServiceOuterClass.UpdateDeviceRequest 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.DeviceServiceOuterClass.UpdateDeviceRequest 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.DeviceServiceOuterClass.UpdateDeviceRequest 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.DeviceServiceOuterClass.UpdateDeviceRequest 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.DeviceServiceOuterClass.UpdateDeviceRequest 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.UpdateDeviceRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.UpdateDeviceRequest) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetTopicAliases(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableTopicAliases(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest.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(); deviceId_ = ""; if (updateMaskBuilder_ == null) { updateMask_ = null; } else { updateMask_ = null; updateMaskBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableTopicAliases().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest(this); int from_bitField0_ = bitField0_; result.deviceId_ = deviceId_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { result.updateMask_ = updateMaskBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.topicAliases_ = internalGetTopicAliases(); result.topicAliases_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableTopicAliases().mergeFrom( other.internalGetTopicAliases()); 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.DeviceServiceOuterClass.UpdateDeviceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object deviceId_ = ""; /** *
       * ID of the device to update.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device to update.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device to update.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device to update.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device to update.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = value; onChanged(); return this; } private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** *
       * Field mask that specifies which fields of the device are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** *
       * Field mask that specifies which fields of the device are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** *
       * Field mask that specifies which fields of the device are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateMask_ = value; onChanged(); } else { updateMaskBuilder_.setMessage(value); } return this; } /** *
       * Field mask that specifies which fields of the device are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder setUpdateMask( com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Field mask that specifies which fields of the device are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } return this; } /** *
       * Field mask that specifies which fields of the device are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { updateMask_ = null; onChanged(); } else { updateMask_ = null; updateMaskBuilder_ = null; } return this; } /** *
       * Field mask that specifies which fields of the device are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** *
       * Field mask that specifies which fields of the device are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** *
       * Field mask that specifies which fields of the device are going to be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } private java.lang.Object name_ = ""; /** *
       * Name of the device. The name must be unique within the registry.
       * 
* * string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the device. The name must be unique within the registry.
       * 
* * string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the device. The name must be unique within the registry.
       * 
* * string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the device. The name must be unique within the registry.
       * 
* * string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the device. The name must be unique within the registry.
       * 
* * string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the device.
       * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the device.
       * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the device.
       * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the device.
       * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the device.
       * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> topicAliases_; private com.google.protobuf.MapField internalGetTopicAliases() { if (topicAliases_ == null) { return com.google.protobuf.MapField.emptyMapField( TopicAliasesDefaultEntryHolder.defaultEntry); } return topicAliases_; } private com.google.protobuf.MapField internalGetMutableTopicAliases() { onChanged();; if (topicAliases_ == null) { topicAliases_ = com.google.protobuf.MapField.newMapField( TopicAliasesDefaultEntryHolder.defaultEntry); } if (!topicAliases_.isMutable()) { topicAliases_ = topicAliases_.copy(); } return topicAliases_; } public int getTopicAliasesCount() { return internalGetTopicAliases().getMap().size(); } /** *
       * Alias of a device topic.
       * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
       * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public boolean containsTopicAliases( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTopicAliases().getMap().containsKey(key); } /** * Use {@link #getTopicAliasesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTopicAliases() { return getTopicAliasesMap(); } /** *
       * Alias of a device topic.
       * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
       * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public java.util.Map getTopicAliasesMap() { return internalGetTopicAliases().getMap(); } /** *
       * Alias of a device topic.
       * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
       * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public java.lang.String getTopicAliasesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTopicAliases().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Alias of a device topic.
       * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
       * 
* * map<string, string> topic_aliases = 5; */ @java.lang.Override public java.lang.String getTopicAliasesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTopicAliases().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearTopicAliases() { internalGetMutableTopicAliases().getMutableMap() .clear(); return this; } /** *
       * Alias of a device topic.
       * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
       * 
* * map<string, string> topic_aliases = 5; */ public Builder removeTopicAliases( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableTopicAliases().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTopicAliases() { return internalGetMutableTopicAliases().getMutableMap(); } /** *
       * Alias of a device topic.
       * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
       * 
* * map<string, string> topic_aliases = 5; */ public Builder putTopicAliases( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableTopicAliases().getMutableMap() .put(key, value); return this; } /** *
       * Alias of a device topic.
       * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/{id}/events`.
       * 
* * map<string, string> topic_aliases = 5; */ public Builder putAllTopicAliases( java.util.Map values) { internalGetMutableTopicAliases().getMutableMap() .putAll(values); 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.UpdateDeviceRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.UpdateDeviceRequest) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateDeviceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateDeviceRequest(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.DeviceServiceOuterClass.UpdateDeviceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateDeviceMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.UpdateDeviceMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device that is being updated.
     * 
* * string device_id = 1; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device that is being updated.
     * 
* * string device_id = 1; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.UpdateDeviceMetadata} */ public static final class UpdateDeviceMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.UpdateDeviceMetadata) UpdateDeviceMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateDeviceMetadata.newBuilder() to construct. private UpdateDeviceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateDeviceMetadata() { deviceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateDeviceMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateDeviceMetadata( 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(); deviceId_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device that is being updated.
     * 
* * string device_id = 1; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device that is being updated.
     * 
* * string device_id = 1; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } 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.DeviceServiceOuterClass.UpdateDeviceMetadata)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata) obj; if (!getDeviceId() .equals(other.getDeviceId())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata 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.DeviceServiceOuterClass.UpdateDeviceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata 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.DeviceServiceOuterClass.UpdateDeviceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata 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.DeviceServiceOuterClass.UpdateDeviceMetadata 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.DeviceServiceOuterClass.UpdateDeviceMetadata 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.DeviceServiceOuterClass.UpdateDeviceMetadata 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.DeviceServiceOuterClass.UpdateDeviceMetadata 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.DeviceServiceOuterClass.UpdateDeviceMetadata 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.DeviceServiceOuterClass.UpdateDeviceMetadata 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.DeviceServiceOuterClass.UpdateDeviceMetadata 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.UpdateDeviceMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.UpdateDeviceMetadata) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata.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(); deviceId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata(this); result.deviceId_ = deviceId_; 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.DeviceServiceOuterClass.UpdateDeviceMetadata) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device that is being updated.
       * 
* * string device_id = 1; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device that is being updated.
       * 
* * string device_id = 1; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device that is being updated.
       * 
* * string device_id = 1; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device that is being updated.
       * 
* * string device_id = 1; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device that is being updated.
       * 
* * string device_id = 1; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = 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:yandex.cloud.iot.devices.v1.UpdateDeviceMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.UpdateDeviceMetadata) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.UpdateDeviceMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateDeviceMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateDeviceMetadata(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.DeviceServiceOuterClass.UpdateDeviceMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteDeviceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeleteDeviceRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device to delete.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device to delete.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteDeviceRequest} */ public static final class DeleteDeviceRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeleteDeviceRequest) DeleteDeviceRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteDeviceRequest.newBuilder() to construct. private DeleteDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteDeviceRequest() { deviceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteDeviceRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteDeviceRequest( 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(); deviceId_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device to delete.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device to delete.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } 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.DeviceServiceOuterClass.DeleteDeviceRequest)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest) obj; if (!getDeviceId() .equals(other.getDeviceId())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest 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.DeviceServiceOuterClass.DeleteDeviceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest 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.DeviceServiceOuterClass.DeleteDeviceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest 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.DeviceServiceOuterClass.DeleteDeviceRequest 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.DeviceServiceOuterClass.DeleteDeviceRequest 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.DeviceServiceOuterClass.DeleteDeviceRequest 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.DeviceServiceOuterClass.DeleteDeviceRequest 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.DeviceServiceOuterClass.DeleteDeviceRequest 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.DeviceServiceOuterClass.DeleteDeviceRequest 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.DeviceServiceOuterClass.DeleteDeviceRequest 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.DeleteDeviceRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeleteDeviceRequest) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest.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(); deviceId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceRequest_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest(this); result.deviceId_ = deviceId_; 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.DeviceServiceOuterClass.DeleteDeviceRequest) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device to delete.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device to delete.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device to delete.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device to delete.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device to delete.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = 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:yandex.cloud.iot.devices.v1.DeleteDeviceRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeleteDeviceRequest) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteDeviceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteDeviceRequest(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.DeviceServiceOuterClass.DeleteDeviceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteDeviceMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeleteDeviceMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device that is being deleted.
     * 
* * string device_id = 1; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device that is being deleted.
     * 
* * string device_id = 1; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteDeviceMetadata} */ public static final class DeleteDeviceMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeleteDeviceMetadata) DeleteDeviceMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteDeviceMetadata.newBuilder() to construct. private DeleteDeviceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteDeviceMetadata() { deviceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteDeviceMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteDeviceMetadata( 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(); deviceId_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device that is being deleted.
     * 
* * string device_id = 1; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device that is being deleted.
     * 
* * string device_id = 1; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } 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.DeviceServiceOuterClass.DeleteDeviceMetadata)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata) obj; if (!getDeviceId() .equals(other.getDeviceId())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata 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.DeviceServiceOuterClass.DeleteDeviceMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata 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.DeviceServiceOuterClass.DeleteDeviceMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata 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.DeviceServiceOuterClass.DeleteDeviceMetadata 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.DeviceServiceOuterClass.DeleteDeviceMetadata 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.DeviceServiceOuterClass.DeleteDeviceMetadata 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.DeviceServiceOuterClass.DeleteDeviceMetadata 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.DeviceServiceOuterClass.DeleteDeviceMetadata 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.DeviceServiceOuterClass.DeleteDeviceMetadata 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.DeviceServiceOuterClass.DeleteDeviceMetadata 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.DeleteDeviceMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeleteDeviceMetadata) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata.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(); deviceId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata(this); result.deviceId_ = deviceId_; 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.DeviceServiceOuterClass.DeleteDeviceMetadata) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device that is being deleted.
       * 
* * string device_id = 1; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device that is being deleted.
       * 
* * string device_id = 1; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device that is being deleted.
       * 
* * string device_id = 1; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device that is being deleted.
       * 
* * string device_id = 1; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device that is being deleted.
       * 
* * string device_id = 1; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = 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:yandex.cloud.iot.devices.v1.DeleteDeviceMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeleteDeviceMetadata) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteDeviceMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteDeviceMetadata(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.DeviceServiceOuterClass.DeleteDeviceMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListDeviceCertificatesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListDeviceCertificatesRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device to list certificates for.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device to list certificates for.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.ListDeviceCertificatesRequest} */ public static final class ListDeviceCertificatesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListDeviceCertificatesRequest) ListDeviceCertificatesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListDeviceCertificatesRequest.newBuilder() to construct. private ListDeviceCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListDeviceCertificatesRequest() { deviceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListDeviceCertificatesRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListDeviceCertificatesRequest( 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(); deviceId_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device to list certificates for.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device to list certificates for.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } 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.DeviceServiceOuterClass.ListDeviceCertificatesRequest)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest) obj; if (!getDeviceId() .equals(other.getDeviceId())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest 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.DeviceServiceOuterClass.ListDeviceCertificatesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest 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.DeviceServiceOuterClass.ListDeviceCertificatesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest 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.DeviceServiceOuterClass.ListDeviceCertificatesRequest 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.DeviceServiceOuterClass.ListDeviceCertificatesRequest 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.DeviceServiceOuterClass.ListDeviceCertificatesRequest 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.DeviceServiceOuterClass.ListDeviceCertificatesRequest 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.DeviceServiceOuterClass.ListDeviceCertificatesRequest 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.DeviceServiceOuterClass.ListDeviceCertificatesRequest 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.DeviceServiceOuterClass.ListDeviceCertificatesRequest 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.ListDeviceCertificatesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListDeviceCertificatesRequest) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest.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(); deviceId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesRequest_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest(this); result.deviceId_ = deviceId_; 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.DeviceServiceOuterClass.ListDeviceCertificatesRequest) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device to list certificates for.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device to list certificates for.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device to list certificates for.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device to list certificates for.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device to list certificates for.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = 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:yandex.cloud.iot.devices.v1.ListDeviceCertificatesRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListDeviceCertificatesRequest) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListDeviceCertificatesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListDeviceCertificatesRequest(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.DeviceServiceOuterClass.ListDeviceCertificatesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListDeviceCertificatesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListDeviceCertificatesResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of certificates for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ java.util.List getCertificatesList(); /** *
     * List of certificates for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate getCertificates(int index); /** *
     * List of certificates for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ int getCertificatesCount(); /** *
     * List of certificates for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ java.util.List getCertificatesOrBuilderList(); /** *
     * List of certificates for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificateOrBuilder getCertificatesOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.ListDeviceCertificatesResponse} */ public static final class ListDeviceCertificatesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListDeviceCertificatesResponse) ListDeviceCertificatesResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListDeviceCertificatesResponse.newBuilder() to construct. private ListDeviceCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListDeviceCertificatesResponse() { certificates_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListDeviceCertificatesResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListDeviceCertificatesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { certificates_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } certificates_.add( input.readMessage(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.parser(), extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { certificates_ = java.util.Collections.unmodifiableList(certificates_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse.Builder.class); } public static final int CERTIFICATES_FIELD_NUMBER = 1; private java.util.List certificates_; /** *
     * List of certificates for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ @java.lang.Override public java.util.List getCertificatesList() { return certificates_; } /** *
     * List of certificates for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ @java.lang.Override public java.util.List getCertificatesOrBuilderList() { return certificates_; } /** *
     * List of certificates for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ @java.lang.Override public int getCertificatesCount() { return certificates_.size(); } /** *
     * List of certificates for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate getCertificates(int index) { return certificates_.get(index); } /** *
     * List of certificates for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificateOrBuilder getCertificatesOrBuilder( int index) { return certificates_.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 < certificates_.size(); i++) { output.writeMessage(1, certificates_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < certificates_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, certificates_.get(i)); } 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.DeviceServiceOuterClass.ListDeviceCertificatesResponse)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse) obj; if (!getCertificatesList() .equals(other.getCertificatesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getCertificatesCount() > 0) { hash = (37 * hash) + CERTIFICATES_FIELD_NUMBER; hash = (53 * hash) + getCertificatesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse 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.DeviceServiceOuterClass.ListDeviceCertificatesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse 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.DeviceServiceOuterClass.ListDeviceCertificatesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse 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.DeviceServiceOuterClass.ListDeviceCertificatesResponse 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.DeviceServiceOuterClass.ListDeviceCertificatesResponse 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.DeviceServiceOuterClass.ListDeviceCertificatesResponse 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.DeviceServiceOuterClass.ListDeviceCertificatesResponse 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.DeviceServiceOuterClass.ListDeviceCertificatesResponse 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.DeviceServiceOuterClass.ListDeviceCertificatesResponse 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.DeviceServiceOuterClass.ListDeviceCertificatesResponse 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.ListDeviceCertificatesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListDeviceCertificatesResponse) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCertificatesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (certificatesBuilder_ == null) { certificates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { certificatesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesResponse_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse(this); int from_bitField0_ = bitField0_; if (certificatesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { certificates_ = java.util.Collections.unmodifiableList(certificates_); bitField0_ = (bitField0_ & ~0x00000001); } result.certificates_ = certificates_; } else { result.certificates_ = certificatesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse.getDefaultInstance()) return this; if (certificatesBuilder_ == null) { if (!other.certificates_.isEmpty()) { if (certificates_.isEmpty()) { certificates_ = other.certificates_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCertificatesIsMutable(); certificates_.addAll(other.certificates_); } onChanged(); } } else { if (!other.certificates_.isEmpty()) { if (certificatesBuilder_.isEmpty()) { certificatesBuilder_.dispose(); certificatesBuilder_ = null; certificates_ = other.certificates_; bitField0_ = (bitField0_ & ~0x00000001); certificatesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCertificatesFieldBuilder() : null; } else { certificatesBuilder_.addAllMessages(other.certificates_); } } } 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.DeviceServiceOuterClass.ListDeviceCertificatesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List certificates_ = java.util.Collections.emptyList(); private void ensureCertificatesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { certificates_ = new java.util.ArrayList(certificates_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.Builder, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificateOrBuilder> certificatesBuilder_; /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public java.util.List getCertificatesList() { if (certificatesBuilder_ == null) { return java.util.Collections.unmodifiableList(certificates_); } else { return certificatesBuilder_.getMessageList(); } } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public int getCertificatesCount() { if (certificatesBuilder_ == null) { return certificates_.size(); } else { return certificatesBuilder_.getCount(); } } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate getCertificates(int index) { if (certificatesBuilder_ == null) { return certificates_.get(index); } else { return certificatesBuilder_.getMessage(index); } } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public Builder setCertificates( int index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate value) { if (certificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCertificatesIsMutable(); certificates_.set(index, value); onChanged(); } else { certificatesBuilder_.setMessage(index, value); } return this; } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public Builder setCertificates( int index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.Builder builderForValue) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.set(index, builderForValue.build()); onChanged(); } else { certificatesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public Builder addCertificates(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate value) { if (certificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCertificatesIsMutable(); certificates_.add(value); onChanged(); } else { certificatesBuilder_.addMessage(value); } return this; } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public Builder addCertificates( int index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate value) { if (certificatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCertificatesIsMutable(); certificates_.add(index, value); onChanged(); } else { certificatesBuilder_.addMessage(index, value); } return this; } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public Builder addCertificates( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.Builder builderForValue) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.add(builderForValue.build()); onChanged(); } else { certificatesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public Builder addCertificates( int index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.Builder builderForValue) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.add(index, builderForValue.build()); onChanged(); } else { certificatesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public Builder addAllCertificates( java.lang.Iterable values) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, certificates_); onChanged(); } else { certificatesBuilder_.addAllMessages(values); } return this; } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public Builder clearCertificates() { if (certificatesBuilder_ == null) { certificates_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { certificatesBuilder_.clear(); } return this; } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public Builder removeCertificates(int index) { if (certificatesBuilder_ == null) { ensureCertificatesIsMutable(); certificates_.remove(index); onChanged(); } else { certificatesBuilder_.remove(index); } return this; } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.Builder getCertificatesBuilder( int index) { return getCertificatesFieldBuilder().getBuilder(index); } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificateOrBuilder getCertificatesOrBuilder( int index) { if (certificatesBuilder_ == null) { return certificates_.get(index); } else { return certificatesBuilder_.getMessageOrBuilder(index); } } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public java.util.List getCertificatesOrBuilderList() { if (certificatesBuilder_ != null) { return certificatesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(certificates_); } } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.Builder addCertificatesBuilder() { return getCertificatesFieldBuilder().addBuilder( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.getDefaultInstance()); } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.Builder addCertificatesBuilder( int index) { return getCertificatesFieldBuilder().addBuilder( index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.getDefaultInstance()); } /** *
       * List of certificates for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DeviceCertificate certificates = 1; */ public java.util.List getCertificatesBuilderList() { return getCertificatesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.Builder, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificateOrBuilder> getCertificatesFieldBuilder() { if (certificatesBuilder_ == null) { certificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.Builder, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificateOrBuilder>( certificates_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); certificates_ = null; } return certificatesBuilder_; } @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.ListDeviceCertificatesResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListDeviceCertificatesResponse) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceCertificatesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListDeviceCertificatesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListDeviceCertificatesResponse(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.DeviceServiceOuterClass.ListDeviceCertificatesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AddDeviceCertificateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.AddDeviceCertificateRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device for which the certificate is being added.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device for which the certificate is being added.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** *
     * Public part of the certificate.
     * 
* * string certificate_data = 3; * @return The certificateData. */ java.lang.String getCertificateData(); /** *
     * Public part of the certificate.
     * 
* * string certificate_data = 3; * @return The bytes for certificateData. */ com.google.protobuf.ByteString getCertificateDataBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.AddDeviceCertificateRequest} */ public static final class AddDeviceCertificateRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.AddDeviceCertificateRequest) AddDeviceCertificateRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AddDeviceCertificateRequest.newBuilder() to construct. private AddDeviceCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AddDeviceCertificateRequest() { deviceId_ = ""; certificateData_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AddDeviceCertificateRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AddDeviceCertificateRequest( 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(); deviceId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); certificateData_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device for which the certificate is being added.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device for which the certificate is being added.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CERTIFICATE_DATA_FIELD_NUMBER = 3; private volatile java.lang.Object certificateData_; /** *
     * Public part of the certificate.
     * 
* * string certificate_data = 3; * @return The certificateData. */ @java.lang.Override public java.lang.String getCertificateData() { java.lang.Object ref = certificateData_; 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(); certificateData_ = s; return s; } } /** *
     * Public part of the certificate.
     * 
* * string certificate_data = 3; * @return The bytes for certificateData. */ @java.lang.Override public com.google.protobuf.ByteString getCertificateDataBytes() { java.lang.Object ref = certificateData_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); certificateData_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateData_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, certificateData_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateData_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, certificateData_); } 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.DeviceServiceOuterClass.AddDeviceCertificateRequest)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest) obj; if (!getDeviceId() .equals(other.getDeviceId())) return false; if (!getCertificateData() .equals(other.getCertificateData())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (37 * hash) + CERTIFICATE_DATA_FIELD_NUMBER; hash = (53 * hash) + getCertificateData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest 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.DeviceServiceOuterClass.AddDeviceCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest 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.DeviceServiceOuterClass.AddDeviceCertificateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest 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.DeviceServiceOuterClass.AddDeviceCertificateRequest 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.DeviceServiceOuterClass.AddDeviceCertificateRequest 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.DeviceServiceOuterClass.AddDeviceCertificateRequest 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.DeviceServiceOuterClass.AddDeviceCertificateRequest 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.DeviceServiceOuterClass.AddDeviceCertificateRequest 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.DeviceServiceOuterClass.AddDeviceCertificateRequest 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.DeviceServiceOuterClass.AddDeviceCertificateRequest 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.AddDeviceCertificateRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.AddDeviceCertificateRequest) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest.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(); deviceId_ = ""; certificateData_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateRequest_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest(this); result.deviceId_ = deviceId_; result.certificateData_ = certificateData_; 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.DeviceServiceOuterClass.AddDeviceCertificateRequest) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } if (!other.getCertificateData().isEmpty()) { certificateData_ = other.certificateData_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device for which the certificate is being added.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device for which the certificate is being added.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device for which the certificate is being added.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device for which the certificate is being added.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device for which the certificate is being added.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = value; onChanged(); return this; } private java.lang.Object certificateData_ = ""; /** *
       * Public part of the certificate.
       * 
* * string certificate_data = 3; * @return The certificateData. */ public java.lang.String getCertificateData() { java.lang.Object ref = certificateData_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); certificateData_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Public part of the certificate.
       * 
* * string certificate_data = 3; * @return The bytes for certificateData. */ public com.google.protobuf.ByteString getCertificateDataBytes() { java.lang.Object ref = certificateData_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); certificateData_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Public part of the certificate.
       * 
* * string certificate_data = 3; * @param value The certificateData to set. * @return This builder for chaining. */ public Builder setCertificateData( java.lang.String value) { if (value == null) { throw new NullPointerException(); } certificateData_ = value; onChanged(); return this; } /** *
       * Public part of the certificate.
       * 
* * string certificate_data = 3; * @return This builder for chaining. */ public Builder clearCertificateData() { certificateData_ = getDefaultInstance().getCertificateData(); onChanged(); return this; } /** *
       * Public part of the certificate.
       * 
* * string certificate_data = 3; * @param value The bytes for certificateData to set. * @return This builder for chaining. */ public Builder setCertificateDataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); certificateData_ = 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:yandex.cloud.iot.devices.v1.AddDeviceCertificateRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.AddDeviceCertificateRequest) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AddDeviceCertificateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AddDeviceCertificateRequest(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.DeviceServiceOuterClass.AddDeviceCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AddDeviceCertificateMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.AddDeviceCertificateMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device certificate that is being added.
     * 
* * string device_id = 1; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device certificate that is being added.
     * 
* * string device_id = 1; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** *
     * Fingerprint of the certificate that is being added.
     * 
* * string fingerprint = 2; * @return The fingerprint. */ java.lang.String getFingerprint(); /** *
     * Fingerprint of the certificate that is being added.
     * 
* * string fingerprint = 2; * @return The bytes for fingerprint. */ com.google.protobuf.ByteString getFingerprintBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.AddDeviceCertificateMetadata} */ public static final class AddDeviceCertificateMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.AddDeviceCertificateMetadata) AddDeviceCertificateMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use AddDeviceCertificateMetadata.newBuilder() to construct. private AddDeviceCertificateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AddDeviceCertificateMetadata() { deviceId_ = ""; fingerprint_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AddDeviceCertificateMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AddDeviceCertificateMetadata( 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(); deviceId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); fingerprint_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device certificate that is being added.
     * 
* * string device_id = 1; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device certificate that is being added.
     * 
* * string device_id = 1; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FINGERPRINT_FIELD_NUMBER = 2; private volatile java.lang.Object fingerprint_; /** *
     * Fingerprint of the certificate that is being added.
     * 
* * string fingerprint = 2; * @return The fingerprint. */ @java.lang.Override public java.lang.String getFingerprint() { java.lang.Object ref = fingerprint_; 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(); fingerprint_ = s; return s; } } /** *
     * Fingerprint of the certificate that is being added.
     * 
* * string fingerprint = 2; * @return The bytes for fingerprint. */ @java.lang.Override public com.google.protobuf.ByteString getFingerprintBytes() { java.lang.Object ref = fingerprint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fingerprint_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fingerprint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fingerprint_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fingerprint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fingerprint_); } 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.DeviceServiceOuterClass.AddDeviceCertificateMetadata)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata) obj; if (!getDeviceId() .equals(other.getDeviceId())) return false; if (!getFingerprint() .equals(other.getFingerprint())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER; hash = (53 * hash) + getFingerprint().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata 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.DeviceServiceOuterClass.AddDeviceCertificateMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata 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.DeviceServiceOuterClass.AddDeviceCertificateMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata 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.DeviceServiceOuterClass.AddDeviceCertificateMetadata 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.DeviceServiceOuterClass.AddDeviceCertificateMetadata 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.DeviceServiceOuterClass.AddDeviceCertificateMetadata 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.DeviceServiceOuterClass.AddDeviceCertificateMetadata 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.DeviceServiceOuterClass.AddDeviceCertificateMetadata 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.DeviceServiceOuterClass.AddDeviceCertificateMetadata 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.DeviceServiceOuterClass.AddDeviceCertificateMetadata 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.AddDeviceCertificateMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.AddDeviceCertificateMetadata) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata.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(); deviceId_ = ""; fingerprint_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata(this); result.deviceId_ = deviceId_; result.fingerprint_ = fingerprint_; 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.DeviceServiceOuterClass.AddDeviceCertificateMetadata) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } if (!other.getFingerprint().isEmpty()) { fingerprint_ = other.fingerprint_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device certificate that is being added.
       * 
* * string device_id = 1; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device certificate that is being added.
       * 
* * string device_id = 1; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device certificate that is being added.
       * 
* * string device_id = 1; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device certificate that is being added.
       * 
* * string device_id = 1; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device certificate that is being added.
       * 
* * string device_id = 1; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = value; onChanged(); return this; } private java.lang.Object fingerprint_ = ""; /** *
       * Fingerprint of the certificate that is being added.
       * 
* * string fingerprint = 2; * @return The fingerprint. */ public java.lang.String getFingerprint() { java.lang.Object ref = fingerprint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fingerprint_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Fingerprint of the certificate that is being added.
       * 
* * string fingerprint = 2; * @return The bytes for fingerprint. */ public com.google.protobuf.ByteString getFingerprintBytes() { java.lang.Object ref = fingerprint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fingerprint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Fingerprint of the certificate that is being added.
       * 
* * string fingerprint = 2; * @param value The fingerprint to set. * @return This builder for chaining. */ public Builder setFingerprint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fingerprint_ = value; onChanged(); return this; } /** *
       * Fingerprint of the certificate that is being added.
       * 
* * string fingerprint = 2; * @return This builder for chaining. */ public Builder clearFingerprint() { fingerprint_ = getDefaultInstance().getFingerprint(); onChanged(); return this; } /** *
       * Fingerprint of the certificate that is being added.
       * 
* * string fingerprint = 2; * @param value The bytes for fingerprint to set. * @return This builder for chaining. */ public Builder setFingerprintBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fingerprint_ = 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:yandex.cloud.iot.devices.v1.AddDeviceCertificateMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.AddDeviceCertificateMetadata) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDeviceCertificateMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AddDeviceCertificateMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AddDeviceCertificateMetadata(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.DeviceServiceOuterClass.AddDeviceCertificateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteDeviceCertificateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeleteDeviceCertificateRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device to delete a certificate for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device to delete a certificate for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** *
     * Fingerprint of the certificate to delete.
     * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The fingerprint. */ java.lang.String getFingerprint(); /** *
     * Fingerprint of the certificate to delete.
     * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for fingerprint. */ com.google.protobuf.ByteString getFingerprintBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteDeviceCertificateRequest} */ public static final class DeleteDeviceCertificateRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeleteDeviceCertificateRequest) DeleteDeviceCertificateRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteDeviceCertificateRequest.newBuilder() to construct. private DeleteDeviceCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteDeviceCertificateRequest() { deviceId_ = ""; fingerprint_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteDeviceCertificateRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteDeviceCertificateRequest( 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(); deviceId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); fingerprint_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device to delete a certificate for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device to delete a certificate for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FINGERPRINT_FIELD_NUMBER = 2; private volatile java.lang.Object fingerprint_; /** *
     * Fingerprint of the certificate to delete.
     * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The fingerprint. */ @java.lang.Override public java.lang.String getFingerprint() { java.lang.Object ref = fingerprint_; 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(); fingerprint_ = s; return s; } } /** *
     * Fingerprint of the certificate to delete.
     * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for fingerprint. */ @java.lang.Override public com.google.protobuf.ByteString getFingerprintBytes() { java.lang.Object ref = fingerprint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fingerprint_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fingerprint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fingerprint_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fingerprint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fingerprint_); } 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.DeviceServiceOuterClass.DeleteDeviceCertificateRequest)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest) obj; if (!getDeviceId() .equals(other.getDeviceId())) return false; if (!getFingerprint() .equals(other.getFingerprint())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER; hash = (53 * hash) + getFingerprint().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest 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.DeviceServiceOuterClass.DeleteDeviceCertificateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest 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.DeviceServiceOuterClass.DeleteDeviceCertificateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest 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.DeviceServiceOuterClass.DeleteDeviceCertificateRequest 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.DeviceServiceOuterClass.DeleteDeviceCertificateRequest 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.DeviceServiceOuterClass.DeleteDeviceCertificateRequest 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.DeviceServiceOuterClass.DeleteDeviceCertificateRequest 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.DeviceServiceOuterClass.DeleteDeviceCertificateRequest 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.DeviceServiceOuterClass.DeleteDeviceCertificateRequest 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.DeviceServiceOuterClass.DeleteDeviceCertificateRequest 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.DeleteDeviceCertificateRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeleteDeviceCertificateRequest) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest.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(); deviceId_ = ""; fingerprint_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateRequest_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest(this); result.deviceId_ = deviceId_; result.fingerprint_ = fingerprint_; 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.DeviceServiceOuterClass.DeleteDeviceCertificateRequest) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } if (!other.getFingerprint().isEmpty()) { fingerprint_ = other.fingerprint_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device to delete a certificate for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device to delete a certificate for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device to delete a certificate for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device to delete a certificate for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device to delete a certificate for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = value; onChanged(); return this; } private java.lang.Object fingerprint_ = ""; /** *
       * Fingerprint of the certificate to delete.
       * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The fingerprint. */ public java.lang.String getFingerprint() { java.lang.Object ref = fingerprint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fingerprint_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Fingerprint of the certificate to delete.
       * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for fingerprint. */ public com.google.protobuf.ByteString getFingerprintBytes() { java.lang.Object ref = fingerprint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fingerprint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Fingerprint of the certificate to delete.
       * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The fingerprint to set. * @return This builder for chaining. */ public Builder setFingerprint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fingerprint_ = value; onChanged(); return this; } /** *
       * Fingerprint of the certificate to delete.
       * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearFingerprint() { fingerprint_ = getDefaultInstance().getFingerprint(); onChanged(); return this; } /** *
       * Fingerprint of the certificate to delete.
       * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for fingerprint to set. * @return This builder for chaining. */ public Builder setFingerprintBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fingerprint_ = 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:yandex.cloud.iot.devices.v1.DeleteDeviceCertificateRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeleteDeviceCertificateRequest) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteDeviceCertificateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteDeviceCertificateRequest(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.DeviceServiceOuterClass.DeleteDeviceCertificateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteDeviceCertificateMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeleteDeviceCertificateMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device certificate that is being deleted.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device certificate that is being deleted.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** *
     * Fingerprint of the certificate that is being deleted.
     * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The fingerprint. */ java.lang.String getFingerprint(); /** *
     * Fingerprint of the certificate that is being deleted.
     * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for fingerprint. */ com.google.protobuf.ByteString getFingerprintBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteDeviceCertificateMetadata} */ public static final class DeleteDeviceCertificateMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeleteDeviceCertificateMetadata) DeleteDeviceCertificateMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteDeviceCertificateMetadata.newBuilder() to construct. private DeleteDeviceCertificateMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteDeviceCertificateMetadata() { deviceId_ = ""; fingerprint_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteDeviceCertificateMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteDeviceCertificateMetadata( 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(); deviceId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); fingerprint_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device certificate that is being deleted.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device certificate that is being deleted.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FINGERPRINT_FIELD_NUMBER = 2; private volatile java.lang.Object fingerprint_; /** *
     * Fingerprint of the certificate that is being deleted.
     * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The fingerprint. */ @java.lang.Override public java.lang.String getFingerprint() { java.lang.Object ref = fingerprint_; 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(); fingerprint_ = s; return s; } } /** *
     * Fingerprint of the certificate that is being deleted.
     * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for fingerprint. */ @java.lang.Override public com.google.protobuf.ByteString getFingerprintBytes() { java.lang.Object ref = fingerprint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fingerprint_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fingerprint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fingerprint_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fingerprint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fingerprint_); } 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.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata) obj; if (!getDeviceId() .equals(other.getDeviceId())) return false; if (!getFingerprint() .equals(other.getFingerprint())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER; hash = (53 * hash) + getFingerprint().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata 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.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata 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.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata 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.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata 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.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata 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.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata 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.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata 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.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata 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.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata 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.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata 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.DeleteDeviceCertificateMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeleteDeviceCertificateMetadata) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata.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(); deviceId_ = ""; fingerprint_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata(this); result.deviceId_ = deviceId_; result.fingerprint_ = fingerprint_; 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.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } if (!other.getFingerprint().isEmpty()) { fingerprint_ = other.fingerprint_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device certificate that is being deleted.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device certificate that is being deleted.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device certificate that is being deleted.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device certificate that is being deleted.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device certificate that is being deleted.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = value; onChanged(); return this; } private java.lang.Object fingerprint_ = ""; /** *
       * Fingerprint of the certificate that is being deleted.
       * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The fingerprint. */ public java.lang.String getFingerprint() { java.lang.Object ref = fingerprint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fingerprint_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Fingerprint of the certificate that is being deleted.
       * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for fingerprint. */ public com.google.protobuf.ByteString getFingerprintBytes() { java.lang.Object ref = fingerprint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fingerprint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Fingerprint of the certificate that is being deleted.
       * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The fingerprint to set. * @return This builder for chaining. */ public Builder setFingerprint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fingerprint_ = value; onChanged(); return this; } /** *
       * Fingerprint of the certificate that is being deleted.
       * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearFingerprint() { fingerprint_ = getDefaultInstance().getFingerprint(); onChanged(); return this; } /** *
       * Fingerprint of the certificate that is being deleted.
       * 
* * string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for fingerprint to set. * @return This builder for chaining. */ public Builder setFingerprintBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fingerprint_ = 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:yandex.cloud.iot.devices.v1.DeleteDeviceCertificateMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeleteDeviceCertificateMetadata) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteDeviceCertificateMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteDeviceCertificateMetadata(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.DeviceServiceOuterClass.DeleteDeviceCertificateMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListDevicePasswordsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListDevicePasswordsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the registry to list passwords in.
     * To get a registry ID make a [RegistryService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the registry to list passwords in.
     * To get a registry ID make a [RegistryService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.ListDevicePasswordsRequest} */ public static final class ListDevicePasswordsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListDevicePasswordsRequest) ListDevicePasswordsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListDevicePasswordsRequest.newBuilder() to construct. private ListDevicePasswordsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListDevicePasswordsRequest() { deviceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListDevicePasswordsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListDevicePasswordsRequest( 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(); deviceId_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the registry to list passwords in.
     * To get a registry ID make a [RegistryService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the registry to list passwords in.
     * To get a registry ID make a [RegistryService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } 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.DeviceServiceOuterClass.ListDevicePasswordsRequest)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest) obj; if (!getDeviceId() .equals(other.getDeviceId())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest 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.DeviceServiceOuterClass.ListDevicePasswordsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest 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.DeviceServiceOuterClass.ListDevicePasswordsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest 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.DeviceServiceOuterClass.ListDevicePasswordsRequest 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.DeviceServiceOuterClass.ListDevicePasswordsRequest 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.DeviceServiceOuterClass.ListDevicePasswordsRequest 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.DeviceServiceOuterClass.ListDevicePasswordsRequest 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.DeviceServiceOuterClass.ListDevicePasswordsRequest 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.DeviceServiceOuterClass.ListDevicePasswordsRequest 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.DeviceServiceOuterClass.ListDevicePasswordsRequest 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.ListDevicePasswordsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListDevicePasswordsRequest) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest.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(); deviceId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsRequest_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest(this); result.deviceId_ = deviceId_; 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.DeviceServiceOuterClass.ListDevicePasswordsRequest) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the registry to list passwords in.
       * To get a registry ID make a [RegistryService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the registry to list passwords in.
       * To get a registry ID make a [RegistryService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the registry to list passwords in.
       * To get a registry ID make a [RegistryService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the registry to list passwords in.
       * To get a registry ID make a [RegistryService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the registry to list passwords in.
       * To get a registry ID make a [RegistryService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = 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:yandex.cloud.iot.devices.v1.ListDevicePasswordsRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListDevicePasswordsRequest) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListDevicePasswordsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListDevicePasswordsRequest(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.DeviceServiceOuterClass.ListDevicePasswordsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListDevicePasswordsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListDevicePasswordsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of passwords for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ java.util.List getPasswordsList(); /** *
     * List of passwords for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword getPasswords(int index); /** *
     * List of passwords for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ int getPasswordsCount(); /** *
     * List of passwords for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ java.util.List getPasswordsOrBuilderList(); /** *
     * List of passwords for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePasswordOrBuilder getPasswordsOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.ListDevicePasswordsResponse} */ public static final class ListDevicePasswordsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListDevicePasswordsResponse) ListDevicePasswordsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListDevicePasswordsResponse.newBuilder() to construct. private ListDevicePasswordsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListDevicePasswordsResponse() { passwords_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListDevicePasswordsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListDevicePasswordsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { passwords_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } passwords_.add( input.readMessage(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.parser(), extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { passwords_ = java.util.Collections.unmodifiableList(passwords_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse.Builder.class); } public static final int PASSWORDS_FIELD_NUMBER = 1; private java.util.List passwords_; /** *
     * List of passwords for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ @java.lang.Override public java.util.List getPasswordsList() { return passwords_; } /** *
     * List of passwords for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ @java.lang.Override public java.util.List getPasswordsOrBuilderList() { return passwords_; } /** *
     * List of passwords for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ @java.lang.Override public int getPasswordsCount() { return passwords_.size(); } /** *
     * List of passwords for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword getPasswords(int index) { return passwords_.get(index); } /** *
     * List of passwords for the specified device.
     * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePasswordOrBuilder getPasswordsOrBuilder( int index) { return passwords_.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 < passwords_.size(); i++) { output.writeMessage(1, passwords_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < passwords_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, passwords_.get(i)); } 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.DeviceServiceOuterClass.ListDevicePasswordsResponse)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse) obj; if (!getPasswordsList() .equals(other.getPasswordsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPasswordsCount() > 0) { hash = (37 * hash) + PASSWORDS_FIELD_NUMBER; hash = (53 * hash) + getPasswordsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse 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.DeviceServiceOuterClass.ListDevicePasswordsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse 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.DeviceServiceOuterClass.ListDevicePasswordsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse 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.DeviceServiceOuterClass.ListDevicePasswordsResponse 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.DeviceServiceOuterClass.ListDevicePasswordsResponse 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.DeviceServiceOuterClass.ListDevicePasswordsResponse 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.DeviceServiceOuterClass.ListDevicePasswordsResponse 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.DeviceServiceOuterClass.ListDevicePasswordsResponse 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.DeviceServiceOuterClass.ListDevicePasswordsResponse 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.DeviceServiceOuterClass.ListDevicePasswordsResponse 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.ListDevicePasswordsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListDevicePasswordsResponse) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPasswordsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (passwordsBuilder_ == null) { passwords_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { passwordsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsResponse_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse(this); int from_bitField0_ = bitField0_; if (passwordsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { passwords_ = java.util.Collections.unmodifiableList(passwords_); bitField0_ = (bitField0_ & ~0x00000001); } result.passwords_ = passwords_; } else { result.passwords_ = passwordsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse.getDefaultInstance()) return this; if (passwordsBuilder_ == null) { if (!other.passwords_.isEmpty()) { if (passwords_.isEmpty()) { passwords_ = other.passwords_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePasswordsIsMutable(); passwords_.addAll(other.passwords_); } onChanged(); } } else { if (!other.passwords_.isEmpty()) { if (passwordsBuilder_.isEmpty()) { passwordsBuilder_.dispose(); passwordsBuilder_ = null; passwords_ = other.passwords_; bitField0_ = (bitField0_ & ~0x00000001); passwordsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPasswordsFieldBuilder() : null; } else { passwordsBuilder_.addAllMessages(other.passwords_); } } } 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.DeviceServiceOuterClass.ListDevicePasswordsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List passwords_ = java.util.Collections.emptyList(); private void ensurePasswordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { passwords_ = new java.util.ArrayList(passwords_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.Builder, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePasswordOrBuilder> passwordsBuilder_; /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public java.util.List getPasswordsList() { if (passwordsBuilder_ == null) { return java.util.Collections.unmodifiableList(passwords_); } else { return passwordsBuilder_.getMessageList(); } } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public int getPasswordsCount() { if (passwordsBuilder_ == null) { return passwords_.size(); } else { return passwordsBuilder_.getCount(); } } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword getPasswords(int index) { if (passwordsBuilder_ == null) { return passwords_.get(index); } else { return passwordsBuilder_.getMessage(index); } } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public Builder setPasswords( int index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword value) { if (passwordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePasswordsIsMutable(); passwords_.set(index, value); onChanged(); } else { passwordsBuilder_.setMessage(index, value); } return this; } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public Builder setPasswords( int index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.Builder builderForValue) { if (passwordsBuilder_ == null) { ensurePasswordsIsMutable(); passwords_.set(index, builderForValue.build()); onChanged(); } else { passwordsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public Builder addPasswords(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword value) { if (passwordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePasswordsIsMutable(); passwords_.add(value); onChanged(); } else { passwordsBuilder_.addMessage(value); } return this; } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public Builder addPasswords( int index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword value) { if (passwordsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePasswordsIsMutable(); passwords_.add(index, value); onChanged(); } else { passwordsBuilder_.addMessage(index, value); } return this; } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public Builder addPasswords( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.Builder builderForValue) { if (passwordsBuilder_ == null) { ensurePasswordsIsMutable(); passwords_.add(builderForValue.build()); onChanged(); } else { passwordsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public Builder addPasswords( int index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.Builder builderForValue) { if (passwordsBuilder_ == null) { ensurePasswordsIsMutable(); passwords_.add(index, builderForValue.build()); onChanged(); } else { passwordsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public Builder addAllPasswords( java.lang.Iterable values) { if (passwordsBuilder_ == null) { ensurePasswordsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, passwords_); onChanged(); } else { passwordsBuilder_.addAllMessages(values); } return this; } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public Builder clearPasswords() { if (passwordsBuilder_ == null) { passwords_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { passwordsBuilder_.clear(); } return this; } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public Builder removePasswords(int index) { if (passwordsBuilder_ == null) { ensurePasswordsIsMutable(); passwords_.remove(index); onChanged(); } else { passwordsBuilder_.remove(index); } return this; } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.Builder getPasswordsBuilder( int index) { return getPasswordsFieldBuilder().getBuilder(index); } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePasswordOrBuilder getPasswordsOrBuilder( int index) { if (passwordsBuilder_ == null) { return passwords_.get(index); } else { return passwordsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public java.util.List getPasswordsOrBuilderList() { if (passwordsBuilder_ != null) { return passwordsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(passwords_); } } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.Builder addPasswordsBuilder() { return getPasswordsFieldBuilder().addBuilder( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.getDefaultInstance()); } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.Builder addPasswordsBuilder( int index) { return getPasswordsFieldBuilder().addBuilder( index, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.getDefaultInstance()); } /** *
       * List of passwords for the specified device.
       * 
* * repeated .yandex.cloud.iot.devices.v1.DevicePassword passwords = 1; */ public java.util.List getPasswordsBuilderList() { return getPasswordsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.Builder, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePasswordOrBuilder> getPasswordsFieldBuilder() { if (passwordsBuilder_ == null) { passwordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.Builder, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePasswordOrBuilder>( passwords_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); passwords_ = null; } return passwordsBuilder_; } @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.ListDevicePasswordsResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListDevicePasswordsResponse) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDevicePasswordsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListDevicePasswordsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListDevicePasswordsResponse(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.DeviceServiceOuterClass.ListDevicePasswordsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AddDevicePasswordRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.AddDevicePasswordRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device to add a password for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device to add a password for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** *
     * Passwords for the device.
     * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
     * 
* * string password = 2 [(.yandex.cloud.length) = ">=14"]; * @return The password. */ java.lang.String getPassword(); /** *
     * Passwords for the device.
     * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
     * 
* * string password = 2 [(.yandex.cloud.length) = ">=14"]; * @return The bytes for password. */ com.google.protobuf.ByteString getPasswordBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.AddDevicePasswordRequest} */ public static final class AddDevicePasswordRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.AddDevicePasswordRequest) AddDevicePasswordRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AddDevicePasswordRequest.newBuilder() to construct. private AddDevicePasswordRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AddDevicePasswordRequest() { deviceId_ = ""; password_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AddDevicePasswordRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AddDevicePasswordRequest( 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(); deviceId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); password_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device to add a password for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device to add a password for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** *
     * Passwords for the device.
     * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
     * 
* * string password = 2 [(.yandex.cloud.length) = ">=14"]; * @return The password. */ @java.lang.Override public java.lang.String getPassword() { java.lang.Object ref = password_; 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(); password_ = s; return s; } } /** *
     * Passwords for the device.
     * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
     * 
* * string password = 2 [(.yandex.cloud.length) = ">=14"]; * @return The bytes for password. */ @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); } 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.DeviceServiceOuterClass.AddDevicePasswordRequest)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest) obj; if (!getDeviceId() .equals(other.getDeviceId())) return false; if (!getPassword() .equals(other.getPassword())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest 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.DeviceServiceOuterClass.AddDevicePasswordRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest 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.DeviceServiceOuterClass.AddDevicePasswordRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest 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.DeviceServiceOuterClass.AddDevicePasswordRequest 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.DeviceServiceOuterClass.AddDevicePasswordRequest 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.DeviceServiceOuterClass.AddDevicePasswordRequest 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.DeviceServiceOuterClass.AddDevicePasswordRequest 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.DeviceServiceOuterClass.AddDevicePasswordRequest 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.DeviceServiceOuterClass.AddDevicePasswordRequest 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.DeviceServiceOuterClass.AddDevicePasswordRequest 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.AddDevicePasswordRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.AddDevicePasswordRequest) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest.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(); deviceId_ = ""; password_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordRequest_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest(this); result.deviceId_ = deviceId_; result.password_ = password_; 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.DeviceServiceOuterClass.AddDevicePasswordRequest) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } if (!other.getPassword().isEmpty()) { password_ = other.password_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device to add a password for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device to add a password for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device to add a password for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device to add a password for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device to add a password for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = value; onChanged(); return this; } private java.lang.Object password_ = ""; /** *
       * Passwords for the device.
       * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
       * 
* * string password = 2 [(.yandex.cloud.length) = ">=14"]; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Passwords for the device.
       * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
       * 
* * string password = 2 [(.yandex.cloud.length) = ">=14"]; * @return The bytes for password. */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); password_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Passwords for the device.
       * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
       * 
* * string password = 2 [(.yandex.cloud.length) = ">=14"]; * @param value The password to set. * @return This builder for chaining. */ public Builder setPassword( java.lang.String value) { if (value == null) { throw new NullPointerException(); } password_ = value; onChanged(); return this; } /** *
       * Passwords for the device.
       * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
       * 
* * string password = 2 [(.yandex.cloud.length) = ">=14"]; * @return This builder for chaining. */ public Builder clearPassword() { password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** *
       * Passwords for the device.
       * The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
       * 
* * string password = 2 [(.yandex.cloud.length) = ">=14"]; * @param value The bytes for password to set. * @return This builder for chaining. */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = 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:yandex.cloud.iot.devices.v1.AddDevicePasswordRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.AddDevicePasswordRequest) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AddDevicePasswordRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AddDevicePasswordRequest(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.DeviceServiceOuterClass.AddDevicePasswordRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AddDevicePasswordMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.AddDevicePasswordMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device for which the password is being added.
     * 
* * string device_id = 1; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device for which the password is being added.
     * 
* * string device_id = 1; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** *
     * ID of the password that is being added.
     * 
* * string password_id = 2; * @return The passwordId. */ java.lang.String getPasswordId(); /** *
     * ID of the password that is being added.
     * 
* * string password_id = 2; * @return The bytes for passwordId. */ com.google.protobuf.ByteString getPasswordIdBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.AddDevicePasswordMetadata} */ public static final class AddDevicePasswordMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.AddDevicePasswordMetadata) AddDevicePasswordMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use AddDevicePasswordMetadata.newBuilder() to construct. private AddDevicePasswordMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AddDevicePasswordMetadata() { deviceId_ = ""; passwordId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AddDevicePasswordMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AddDevicePasswordMetadata( 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(); deviceId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); passwordId_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device for which the password is being added.
     * 
* * string device_id = 1; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device for which the password is being added.
     * 
* * string device_id = 1; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORD_ID_FIELD_NUMBER = 2; private volatile java.lang.Object passwordId_; /** *
     * ID of the password that is being added.
     * 
* * string password_id = 2; * @return The passwordId. */ @java.lang.Override public java.lang.String getPasswordId() { java.lang.Object ref = passwordId_; 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(); passwordId_ = s; return s; } } /** *
     * ID of the password that is being added.
     * 
* * string password_id = 2; * @return The bytes for passwordId. */ @java.lang.Override public com.google.protobuf.ByteString getPasswordIdBytes() { java.lang.Object ref = passwordId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passwordId_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passwordId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, passwordId_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passwordId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, passwordId_); } 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.DeviceServiceOuterClass.AddDevicePasswordMetadata)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata) obj; if (!getDeviceId() .equals(other.getDeviceId())) return false; if (!getPasswordId() .equals(other.getPasswordId())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (37 * hash) + PASSWORD_ID_FIELD_NUMBER; hash = (53 * hash) + getPasswordId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata 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.DeviceServiceOuterClass.AddDevicePasswordMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata 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.DeviceServiceOuterClass.AddDevicePasswordMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata 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.DeviceServiceOuterClass.AddDevicePasswordMetadata 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.DeviceServiceOuterClass.AddDevicePasswordMetadata 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.DeviceServiceOuterClass.AddDevicePasswordMetadata 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.DeviceServiceOuterClass.AddDevicePasswordMetadata 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.DeviceServiceOuterClass.AddDevicePasswordMetadata 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.DeviceServiceOuterClass.AddDevicePasswordMetadata 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.DeviceServiceOuterClass.AddDevicePasswordMetadata 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.AddDevicePasswordMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.AddDevicePasswordMetadata) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata.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(); deviceId_ = ""; passwordId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata(this); result.deviceId_ = deviceId_; result.passwordId_ = passwordId_; 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.DeviceServiceOuterClass.AddDevicePasswordMetadata) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } if (!other.getPasswordId().isEmpty()) { passwordId_ = other.passwordId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device for which the password is being added.
       * 
* * string device_id = 1; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device for which the password is being added.
       * 
* * string device_id = 1; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device for which the password is being added.
       * 
* * string device_id = 1; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device for which the password is being added.
       * 
* * string device_id = 1; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device for which the password is being added.
       * 
* * string device_id = 1; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = value; onChanged(); return this; } private java.lang.Object passwordId_ = ""; /** *
       * ID of the password that is being added.
       * 
* * string password_id = 2; * @return The passwordId. */ public java.lang.String getPasswordId() { java.lang.Object ref = passwordId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); passwordId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the password that is being added.
       * 
* * string password_id = 2; * @return The bytes for passwordId. */ public com.google.protobuf.ByteString getPasswordIdBytes() { java.lang.Object ref = passwordId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passwordId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the password that is being added.
       * 
* * string password_id = 2; * @param value The passwordId to set. * @return This builder for chaining. */ public Builder setPasswordId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } passwordId_ = value; onChanged(); return this; } /** *
       * ID of the password that is being added.
       * 
* * string password_id = 2; * @return This builder for chaining. */ public Builder clearPasswordId() { passwordId_ = getDefaultInstance().getPasswordId(); onChanged(); return this; } /** *
       * ID of the password that is being added.
       * 
* * string password_id = 2; * @param value The bytes for passwordId to set. * @return This builder for chaining. */ public Builder setPasswordIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); passwordId_ = 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:yandex.cloud.iot.devices.v1.AddDevicePasswordMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.AddDevicePasswordMetadata) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.AddDevicePasswordMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AddDevicePasswordMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AddDevicePasswordMetadata(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.DeviceServiceOuterClass.AddDevicePasswordMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteDevicePasswordRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeleteDevicePasswordRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device to delete a password for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device to delete a password for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** *
     * ID of the password to delete.
     * To get a password ID make a [DeviceService.ListPasswords] request.
     * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The passwordId. */ java.lang.String getPasswordId(); /** *
     * ID of the password to delete.
     * To get a password ID make a [DeviceService.ListPasswords] request.
     * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for passwordId. */ com.google.protobuf.ByteString getPasswordIdBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteDevicePasswordRequest} */ public static final class DeleteDevicePasswordRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeleteDevicePasswordRequest) DeleteDevicePasswordRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteDevicePasswordRequest.newBuilder() to construct. private DeleteDevicePasswordRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteDevicePasswordRequest() { deviceId_ = ""; passwordId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteDevicePasswordRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteDevicePasswordRequest( 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(); deviceId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); passwordId_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device to delete a password for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device to delete a password for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORD_ID_FIELD_NUMBER = 2; private volatile java.lang.Object passwordId_; /** *
     * ID of the password to delete.
     * To get a password ID make a [DeviceService.ListPasswords] request.
     * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The passwordId. */ @java.lang.Override public java.lang.String getPasswordId() { java.lang.Object ref = passwordId_; 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(); passwordId_ = s; return s; } } /** *
     * ID of the password to delete.
     * To get a password ID make a [DeviceService.ListPasswords] request.
     * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for passwordId. */ @java.lang.Override public com.google.protobuf.ByteString getPasswordIdBytes() { java.lang.Object ref = passwordId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passwordId_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passwordId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, passwordId_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passwordId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, passwordId_); } 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.DeviceServiceOuterClass.DeleteDevicePasswordRequest)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest) obj; if (!getDeviceId() .equals(other.getDeviceId())) return false; if (!getPasswordId() .equals(other.getPasswordId())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (37 * hash) + PASSWORD_ID_FIELD_NUMBER; hash = (53 * hash) + getPasswordId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest 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.DeviceServiceOuterClass.DeleteDevicePasswordRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest 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.DeviceServiceOuterClass.DeleteDevicePasswordRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest 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.DeviceServiceOuterClass.DeleteDevicePasswordRequest 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.DeviceServiceOuterClass.DeleteDevicePasswordRequest 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.DeviceServiceOuterClass.DeleteDevicePasswordRequest 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.DeviceServiceOuterClass.DeleteDevicePasswordRequest 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.DeviceServiceOuterClass.DeleteDevicePasswordRequest 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.DeviceServiceOuterClass.DeleteDevicePasswordRequest 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.DeviceServiceOuterClass.DeleteDevicePasswordRequest 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.DeleteDevicePasswordRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeleteDevicePasswordRequest) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest.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(); deviceId_ = ""; passwordId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordRequest_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest(this); result.deviceId_ = deviceId_; result.passwordId_ = passwordId_; 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.DeviceServiceOuterClass.DeleteDevicePasswordRequest) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } if (!other.getPasswordId().isEmpty()) { passwordId_ = other.passwordId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device to delete a password for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device to delete a password for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device to delete a password for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device to delete a password for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device to delete a password for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = value; onChanged(); return this; } private java.lang.Object passwordId_ = ""; /** *
       * ID of the password to delete.
       * To get a password ID make a [DeviceService.ListPasswords] request.
       * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The passwordId. */ public java.lang.String getPasswordId() { java.lang.Object ref = passwordId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); passwordId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the password to delete.
       * To get a password ID make a [DeviceService.ListPasswords] request.
       * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for passwordId. */ public com.google.protobuf.ByteString getPasswordIdBytes() { java.lang.Object ref = passwordId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passwordId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the password to delete.
       * To get a password ID make a [DeviceService.ListPasswords] request.
       * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The passwordId to set. * @return This builder for chaining. */ public Builder setPasswordId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } passwordId_ = value; onChanged(); return this; } /** *
       * ID of the password to delete.
       * To get a password ID make a [DeviceService.ListPasswords] request.
       * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearPasswordId() { passwordId_ = getDefaultInstance().getPasswordId(); onChanged(); return this; } /** *
       * ID of the password to delete.
       * To get a password ID make a [DeviceService.ListPasswords] request.
       * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for passwordId to set. * @return This builder for chaining. */ public Builder setPasswordIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); passwordId_ = 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:yandex.cloud.iot.devices.v1.DeleteDevicePasswordRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeleteDevicePasswordRequest) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteDevicePasswordRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteDevicePasswordRequest(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.DeviceServiceOuterClass.DeleteDevicePasswordRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteDevicePasswordMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeleteDevicePasswordMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device for which the password is being deleted.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device for which the password is being deleted.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** *
     * ID of the password that is being deleted.
     * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The passwordId. */ java.lang.String getPasswordId(); /** *
     * ID of the password that is being deleted.
     * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for passwordId. */ com.google.protobuf.ByteString getPasswordIdBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteDevicePasswordMetadata} */ public static final class DeleteDevicePasswordMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeleteDevicePasswordMetadata) DeleteDevicePasswordMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteDevicePasswordMetadata.newBuilder() to construct. private DeleteDevicePasswordMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteDevicePasswordMetadata() { deviceId_ = ""; passwordId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteDevicePasswordMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteDevicePasswordMetadata( 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(); deviceId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); passwordId_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device for which the password is being deleted.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device for which the password is being deleted.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORD_ID_FIELD_NUMBER = 2; private volatile java.lang.Object passwordId_; /** *
     * ID of the password that is being deleted.
     * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The passwordId. */ @java.lang.Override public java.lang.String getPasswordId() { java.lang.Object ref = passwordId_; 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(); passwordId_ = s; return s; } } /** *
     * ID of the password that is being deleted.
     * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for passwordId. */ @java.lang.Override public com.google.protobuf.ByteString getPasswordIdBytes() { java.lang.Object ref = passwordId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passwordId_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passwordId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, passwordId_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passwordId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, passwordId_); } 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.DeviceServiceOuterClass.DeleteDevicePasswordMetadata)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata) obj; if (!getDeviceId() .equals(other.getDeviceId())) return false; if (!getPasswordId() .equals(other.getPasswordId())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (37 * hash) + PASSWORD_ID_FIELD_NUMBER; hash = (53 * hash) + getPasswordId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata 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.DeviceServiceOuterClass.DeleteDevicePasswordMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata 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.DeviceServiceOuterClass.DeleteDevicePasswordMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata 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.DeviceServiceOuterClass.DeleteDevicePasswordMetadata 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.DeviceServiceOuterClass.DeleteDevicePasswordMetadata 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.DeviceServiceOuterClass.DeleteDevicePasswordMetadata 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.DeviceServiceOuterClass.DeleteDevicePasswordMetadata 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.DeviceServiceOuterClass.DeleteDevicePasswordMetadata 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.DeviceServiceOuterClass.DeleteDevicePasswordMetadata 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.DeviceServiceOuterClass.DeleteDevicePasswordMetadata 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.DeleteDevicePasswordMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeleteDevicePasswordMetadata) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata.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(); deviceId_ = ""; passwordId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata(this); result.deviceId_ = deviceId_; result.passwordId_ = passwordId_; 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.DeviceServiceOuterClass.DeleteDevicePasswordMetadata) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } if (!other.getPasswordId().isEmpty()) { passwordId_ = other.passwordId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device for which the password is being deleted.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device for which the password is being deleted.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device for which the password is being deleted.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device for which the password is being deleted.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device for which the password is being deleted.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = value; onChanged(); return this; } private java.lang.Object passwordId_ = ""; /** *
       * ID of the password that is being deleted.
       * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The passwordId. */ public java.lang.String getPasswordId() { java.lang.Object ref = passwordId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); passwordId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the password that is being deleted.
       * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for passwordId. */ public com.google.protobuf.ByteString getPasswordIdBytes() { java.lang.Object ref = passwordId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); passwordId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the password that is being deleted.
       * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The passwordId to set. * @return This builder for chaining. */ public Builder setPasswordId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } passwordId_ = value; onChanged(); return this; } /** *
       * ID of the password that is being deleted.
       * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearPasswordId() { passwordId_ = getDefaultInstance().getPasswordId(); onChanged(); return this; } /** *
       * ID of the password that is being deleted.
       * 
* * string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for passwordId to set. * @return This builder for chaining. */ public Builder setPasswordIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); passwordId_ = 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:yandex.cloud.iot.devices.v1.DeleteDevicePasswordMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeleteDevicePasswordMetadata) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.DeleteDevicePasswordMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteDevicePasswordMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteDevicePasswordMetadata(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.DeviceServiceOuterClass.DeleteDevicePasswordMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListDeviceOperationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListDeviceOperationsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device to list operations for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true]; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device to list operations for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** *
     * The maximum number of results per page that should be returned. If the number of available
     * results is larger than `page_size`, the service returns a [ListDeviceOperationsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ListDeviceOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ListDeviceOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); /** *
     * A filter expression that filters resources listed in the response.
     * Currently you can use filtering only on [Device.name] field.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ java.lang.String getFilter(); /** *
     * A filter expression that filters resources listed in the response.
     * Currently you can use filtering only on [Device.name] field.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.ListDeviceOperationsRequest} */ public static final class ListDeviceOperationsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListDeviceOperationsRequest) ListDeviceOperationsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListDeviceOperationsRequest.newBuilder() to construct. private ListDeviceOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListDeviceOperationsRequest() { deviceId_ = ""; pageToken_ = ""; filter_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListDeviceOperationsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListDeviceOperationsRequest( 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(); deviceId_ = s; break; } case 16: { pageSize_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); filter_ = s; 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.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device to list operations for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true]; * @return The deviceId. */ @java.lang.Override public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; 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(); deviceId_ = s; return s; } } /** *
     * ID of the device to list operations for.
     * To get a device ID make a [DeviceService.List] request.
     * 
* * string device_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private long pageSize_; /** *
     * The maximum number of results per page that should be returned. If the number of available
     * results is larger than `page_size`, the service returns a [ListDeviceOperationsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ListDeviceOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; 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(); pageToken_ = s; return s; } } /** *
     * Page token. To get the next page of results, set `page_token` to the
     * [ListDeviceOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** *
     * A filter expression that filters resources listed in the response.
     * Currently you can use filtering only on [Device.name] field.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; } } /** *
     * A filter expression that filters resources listed in the response.
     * Currently you can use filtering only on [Device.name] field.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = 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(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } if (pageSize_ != 0L) { output.writeInt64(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } 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(deviceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_); } if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } 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.DeviceServiceOuterClass.ListDeviceOperationsRequest)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest) obj; if (!getDeviceId() .equals(other.getDeviceId())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (!getFilter() .equals(other.getFilter())) 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) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest 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.DeviceServiceOuterClass.ListDeviceOperationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest 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.DeviceServiceOuterClass.ListDeviceOperationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest 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.DeviceServiceOuterClass.ListDeviceOperationsRequest 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.DeviceServiceOuterClass.ListDeviceOperationsRequest 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.DeviceServiceOuterClass.ListDeviceOperationsRequest 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.DeviceServiceOuterClass.ListDeviceOperationsRequest 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.DeviceServiceOuterClass.ListDeviceOperationsRequest 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.DeviceServiceOuterClass.ListDeviceOperationsRequest 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.DeviceServiceOuterClass.ListDeviceOperationsRequest 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.ListDeviceOperationsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListDeviceOperationsRequest) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest.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(); deviceId_ = ""; pageSize_ = 0L; pageToken_ = ""; filter_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsRequest_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest(this); result.deviceId_ = deviceId_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.filter_ = filter_; 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.DeviceServiceOuterClass.ListDeviceOperationsRequest) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device to list operations for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true]; * @return The deviceId. */ public java.lang.String getDeviceId() { java.lang.Object ref = deviceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); deviceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device to list operations for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for deviceId. */ public com.google.protobuf.ByteString getDeviceIdBytes() { java.lang.Object ref = deviceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device to list operations for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true]; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } deviceId_ = value; onChanged(); return this; } /** *
       * ID of the device to list operations for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device to list operations for.
       * To get a device ID make a [DeviceService.List] request.
       * 
* * string device_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for deviceId to set. * @return This builder for chaining. */ public Builder setDeviceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); deviceId_ = value; onChanged(); return this; } private long pageSize_ ; /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `page_size`, the service returns a [ListDeviceOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `page_size`, the service returns a [ListDeviceOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; } /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `page_size`, the service returns a [ListDeviceOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListDeviceOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListDeviceOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListDeviceOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @param value The pageToken to set. * @return This builder for chaining. */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListDeviceOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `page_token` to the
       * [ListDeviceOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; } private java.lang.Object filter_ = ""; /** *
       * A filter expression that filters resources listed in the response.
       * Currently you can use filtering only on [Device.name] field.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A filter expression that filters resources listed in the response.
       * Currently you can use filtering only on [Device.name] field.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A filter expression that filters resources listed in the response.
       * Currently you can use filtering only on [Device.name] field.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @param value The filter to set. * @return This builder for chaining. */ public Builder setFilter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); return this; } /** *
       * A filter expression that filters resources listed in the response.
       * Currently you can use filtering only on [Device.name] field.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return This builder for chaining. */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** *
       * A filter expression that filters resources listed in the response.
       * Currently you can use filtering only on [Device.name] field.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @param value The bytes for filter to set. * @return This builder for chaining. */ public Builder setFilterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = 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:yandex.cloud.iot.devices.v1.ListDeviceOperationsRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListDeviceOperationsRequest) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListDeviceOperationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListDeviceOperationsRequest(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.DeviceServiceOuterClass.ListDeviceOperationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListDeviceOperationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListDeviceOperationsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of operations for the specified device certificate.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ java.util.List getOperationsList(); /** *
     * List of operations for the specified device certificate.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index); /** *
     * List of operations for the specified device certificate.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ int getOperationsCount(); /** *
     * List of operations for the specified device certificate.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ java.util.List getOperationsOrBuilderList(); /** *
     * List of operations for the specified device certificate.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder( int index); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListDeviceOperationsRequest.page_size], use `next_page_token` as the value
     * for the [ListDeviceOperationsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListDeviceOperationsRequest.page_size], use `next_page_token` as the value
     * for the [ListDeviceOperationsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.ListDeviceOperationsResponse} */ public static final class ListDeviceOperationsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListDeviceOperationsResponse) ListDeviceOperationsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListDeviceOperationsResponse.newBuilder() to construct. private ListDeviceOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListDeviceOperationsResponse() { operations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListDeviceOperationsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListDeviceOperationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { operations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } operations_.add( input.readMessage(yandex.cloud.api.operation.OperationOuterClass.Operation.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = s; 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse.Builder.class); } public static final int OPERATIONS_FIELD_NUMBER = 1; private java.util.List operations_; /** *
     * List of operations for the specified device certificate.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public java.util.List getOperationsList() { return operations_; } /** *
     * List of operations for the specified device certificate.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public java.util.List getOperationsOrBuilderList() { return operations_; } /** *
     * List of operations for the specified device certificate.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public int getOperationsCount() { return operations_.size(); } /** *
     * List of operations for the specified device certificate.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) { return operations_.get(index); } /** *
     * List of operations for the specified device certificate.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder( int index) { return operations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListDeviceOperationsRequest.page_size], use `next_page_token` as the value
     * for the [ListDeviceOperationsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; 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(); nextPageToken_ = s; return s; } } /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListDeviceOperationsRequest.page_size], use `next_page_token` as the value
     * for the [ListDeviceOperationsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `next_page_token` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = 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 { for (int i = 0; i < operations_.size(); i++) { output.writeMessage(1, operations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < operations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, operations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } 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.DeviceServiceOuterClass.ListDeviceOperationsResponse)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse other = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse) obj; if (!getOperationsList() .equals(other.getOperationsList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getOperationsCount() > 0) { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse 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.DeviceServiceOuterClass.ListDeviceOperationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse 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.DeviceServiceOuterClass.ListDeviceOperationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse 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.DeviceServiceOuterClass.ListDeviceOperationsResponse 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.DeviceServiceOuterClass.ListDeviceOperationsResponse 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.DeviceServiceOuterClass.ListDeviceOperationsResponse 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.DeviceServiceOuterClass.ListDeviceOperationsResponse 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.DeviceServiceOuterClass.ListDeviceOperationsResponse 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.DeviceServiceOuterClass.ListDeviceOperationsResponse 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.DeviceServiceOuterClass.ListDeviceOperationsResponse 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.ListDeviceOperationsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListDeviceOperationsResponse) yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse.class, yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { operationsBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsResponse_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse build() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse result = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse(this); int from_bitField0_ = bitField0_; if (operationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); bitField0_ = (bitField0_ & ~0x00000001); } result.operations_ = operations_; } else { result.operations_ = operationsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; 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.DeviceServiceOuterClass.ListDeviceOperationsResponse) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse.getDefaultInstance()) return this; if (operationsBuilder_ == null) { if (!other.operations_.isEmpty()) { if (operations_.isEmpty()) { operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOperationsIsMutable(); operations_.addAll(other.operations_); } onChanged(); } } else { if (!other.operations_.isEmpty()) { if (operationsBuilder_.isEmpty()) { operationsBuilder_.dispose(); operationsBuilder_ = null; operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000001); operationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOperationsFieldBuilder() : null; } else { operationsBuilder_.addAllMessages(other.operations_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List operations_ = java.util.Collections.emptyList(); private void ensureOperationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { operations_ = new java.util.ArrayList(operations_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder> operationsBuilder_; /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public java.util.List getOperationsList() { if (operationsBuilder_ == null) { return java.util.Collections.unmodifiableList(operations_); } else { return operationsBuilder_.getMessageList(); } } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public int getOperationsCount() { if (operationsBuilder_ == null) { return operations_.size(); } else { return operationsBuilder_.getCount(); } } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { return operationsBuilder_.getMessage(index); } } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder setOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.set(index, value); onChanged(); } else { operationsBuilder_.setMessage(index, value); } return this; } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder setOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.set(index, builderForValue.build()); onChanged(); } else { operationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations(yandex.cloud.api.operation.OperationOuterClass.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.add(value); onChanged(); } else { operationsBuilder_.addMessage(value); } return this; } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.add(index, value); onChanged(); } else { operationsBuilder_.addMessage(index, value); } return this; } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations( yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(builderForValue.build()); onChanged(); } else { operationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(index, builderForValue.build()); onChanged(); } else { operationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addAllOperations( java.lang.Iterable values) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, operations_); onChanged(); } else { operationsBuilder_.addAllMessages(values); } return this; } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder clearOperations() { if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { operationsBuilder_.clear(); } return this; } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder removeOperations(int index) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.remove(index); onChanged(); } else { operationsBuilder_.remove(index); } return this; } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder getOperationsBuilder( int index) { return getOperationsFieldBuilder().getBuilder(index); } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder( int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { return operationsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public java.util.List getOperationsOrBuilderList() { if (operationsBuilder_ != null) { return operationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(operations_); } } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder() { return getOperationsFieldBuilder().addBuilder( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()); } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder( int index) { return getOperationsFieldBuilder().addBuilder( index, yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()); } /** *
       * List of operations for the specified device certificate.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public java.util.List getOperationsBuilderList() { return getOperationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder> getOperationsFieldBuilder() { if (operationsBuilder_ == null) { operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>( operations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); operations_ = null; } return operationsBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListDeviceOperationsRequest.page_size], use `next_page_token` as the value
       * for the [ListDeviceOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListDeviceOperationsRequest.page_size], use `next_page_token` as the value
       * for the [ListDeviceOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListDeviceOperationsRequest.page_size], use `next_page_token` as the value
       * for the [ListDeviceOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListDeviceOperationsRequest.page_size], use `next_page_token` as the value
       * for the [ListDeviceOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListDeviceOperationsRequest.page_size], use `next_page_token` as the value
       * for the [ListDeviceOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `next_page_token` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = 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:yandex.cloud.iot.devices.v1.ListDeviceOperationsResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListDeviceOperationsResponse) private static final yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse(); } public static yandex.cloud.api.iot.devices.v1.DeviceServiceOuterClass.ListDeviceOperationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListDeviceOperationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListDeviceOperationsResponse(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.DeviceServiceOuterClass.ListDeviceOperationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_GetDeviceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_GetDeviceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_GetByNameDeviceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_GetByNameDeviceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_ListDevicesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_ListDevicesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_ListDevicesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_ListDevicesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_TopicAliasesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_TopicAliasesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_Certificate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_Certificate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_CreateDeviceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_CreateDeviceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_TopicAliasesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_TopicAliasesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n0yandex/cloud/iot/devices/v1/device_ser" + "vice.proto\022\033yandex.cloud.iot.devices.v1\032" + "\034google/api/annotations.proto\032 google/pr" + "otobuf/field_mask.proto\032\035yandex/cloud/va" + "lidation.proto\032 yandex/cloud/api/operati" + "on.proto\032&yandex/cloud/operation/operati" + "on.proto\032(yandex/cloud/iot/devices/v1/de" + "vice.proto\"q\n\020GetDeviceRequest\022\037\n\tdevice" + "_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022<\n\013device_view\030\002" + " \001(\0162\'.yandex.cloud.iot.devices.v1.Devic" + "eView\"\256\001\n\026GetByNameDeviceRequest\022!\n\013regi" + "stry_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\0223\n\013device_na" + "me\030\002 \001(\tB\036\350\3071\001\212\3101\004<=50\362\3071\016[a-zA-Z0-9_-]*" + "\022<\n\013device_view\030\003 \001(\0162\'.yandex.cloud.iot" + ".devices.v1.DeviceView\"\334\001\n\022ListDevicesRe" + "quest\022\037\n\013registry_id\030\001 \001(\tB\010\212\3101\004<=50H\000\022\035" + "\n\tfolder_id\030\002 \001(\tB\010\212\3101\004<=50H\000\022\035\n\tpage_si" + "ze\030\003 \001(\003B\n\372\3071\0060-1000\022\035\n\npage_token\030\004 \001(\t" + "B\t\212\3101\005<=100\022<\n\013device_view\030\005 \001(\0162\'.yande" + "x.cloud.iot.devices.v1.DeviceViewB\n\n\002id\022" + "\004\300\3011\001\"d\n\023ListDevicesResponse\0224\n\007devices\030" + "\001 \003(\0132#.yandex.cloud.iot.devices.v1.Devi" + "ce\022\027\n\017next_page_token\030\002 \001(\t\"\245\003\n\023CreateDe" + "viceRequest\022!\n\013registry_id\030\001 \001(\tB\014\350\3071\001\212\310" + "1\004<=50\022,\n\004name\030\002 \001(\tB\036\350\3071\001\212\3101\004<=50\362\3071\016[a" + "-zA-Z0-9_-]*\022\036\n\013description\030\003 \001(\tB\t\212\3101\005<" + "=256\022R\n\014certificates\030\004 \003(\0132<.yandex.clou" + "d.iot.devices.v1.CreateDeviceRequest.Cer" + "tificate\022Y\n\rtopic_aliases\030\005 \003(\0132B.yandex" + ".cloud.iot.devices.v1.CreateDeviceReques" + "t.TopicAliasesEntry\022\020\n\010password\030\006 \001(\t\0323\n" + "\021TopicAliasesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + "\030\002 \001(\t:\0028\001\032\'\n\013Certificate\022\030\n\020certificate" + "_data\030\001 \001(\t\")\n\024CreateDeviceMetadata\022\021\n\td" + "evice_id\030\001 \001(\t\"\301\002\n\023UpdateDeviceRequest\022\037" + "\n\tdevice_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022/\n\013updat" + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + "\022(\n\004name\030\003 \001(\tB\032\212\3101\004<=50\362\3071\016[a-zA-Z0-9_-" + "]*\022\036\n\013description\030\004 \001(\tB\t\212\3101\005<=256\022Y\n\rto" + "pic_aliases\030\005 \003(\0132B.yandex.cloud.iot.dev" + "ices.v1.UpdateDeviceRequest.TopicAliases" + "Entry\0323\n\021TopicAliasesEntry\022\013\n\003key\030\001 \001(\t\022" + "\r\n\005value\030\002 \001(\t:\0028\001\")\n\024UpdateDeviceMetada" + "ta\022\021\n\tdevice_id\030\001 \001(\t\"6\n\023DeleteDeviceReq" + "uest\022\037\n\tdevice_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\")\n" + "\024DeleteDeviceMetadata\022\021\n\tdevice_id\030\001 \001(\t" + "\"@\n\035ListDeviceCertificatesRequest\022\037\n\tdev" + "ice_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\"f\n\036ListDevice" + "CertificatesResponse\022D\n\014certificates\030\001 \003" + "(\0132..yandex.cloud.iot.devices.v1.DeviceC" + "ertificate\"X\n\033AddDeviceCertificateReques" + "t\022\037\n\tdevice_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022\030\n\020ce" + "rtificate_data\030\003 \001(\t\"F\n\034AddDeviceCertifi" + "cateMetadata\022\021\n\tdevice_id\030\001 \001(\t\022\023\n\013finge" + "rprint\030\002 \001(\t\"d\n\036DeleteDeviceCertificateR" + "equest\022\037\n\tdevice_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022" + "!\n\013fingerprint\030\002 \001(\tB\014\350\3071\001\212\3101\004<=50\"e\n\037De" + "leteDeviceCertificateMetadata\022\037\n\tdevice_" + "id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022!\n\013fingerprint\030\002 " + "\001(\tB\014\350\3071\001\212\3101\004<=50\"=\n\032ListDevicePasswords" + "Request\022\037\n\tdevice_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50" + "\"]\n\033ListDevicePasswordsResponse\022>\n\tpassw" + "ords\030\001 \003(\0132+.yandex.cloud.iot.devices.v1" + ".DevicePassword\"W\n\030AddDevicePasswordRequ" + "est\022\037\n\tdevice_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022\032\n\010" + "password\030\002 \001(\tB\010\212\3101\004>=14\"C\n\031AddDevicePas" + "swordMetadata\022\021\n\tdevice_id\030\001 \001(\t\022\023\n\013pass" + "word_id\030\002 \001(\t\"a\n\033DeleteDevicePasswordReq" + "uest\022\037\n\tdevice_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022!\n" + "\013password_id\030\002 \001(\tB\014\350\3071\001\212\3101\004<=50\"b\n\034Dele" + "teDevicePasswordMetadata\022\037\n\tdevice_id\030\001 " + "\001(\tB\014\350\3071\001\212\3101\004<=50\022!\n\013password_id\030\002 \001(\tB\014" + "\350\3071\001\212\3101\004<=50\"\220\001\n\033ListDeviceOperationsReq" + "uest\022\027\n\tdevice_id\030\001 \001(\tB\004\350\3071\001\022\035\n\tpage_si" + "ze\030\002 \001(\003B\n\372\3071\0060-1000\022\035\n\npage_token\030\003 \001(\t" + "B\t\212\3101\005<=100\022\032\n\006filter\030\004 \001(\tB\n\212\3101\006<=1000\"" + "n\n\034ListDeviceOperationsResponse\0225\n\nopera" + "tions\030\001 \003(\0132!.yandex.cloud.operation.Ope" + "ration\022\027\n\017next_page_token\030\002 \001(\t2\260\023\n\rDevi" + "ceService\022\206\001\n\003Get\022-.yandex.cloud.iot.dev" + "ices.v1.GetDeviceRequest\032#.yandex.cloud." + "iot.devices.v1.Device\"+\202\323\344\223\002%\022#/iot-devi" + "ces/v1/devices/{device_id}\022\220\001\n\tGetByName" + "\0223.yandex.cloud.iot.devices.v1.GetByName" + "DeviceRequest\032#.yandex.cloud.iot.devices" + ".v1.Device\")\202\323\344\223\002#\022!/iot-devices/v1/devi" + "ces:getByName\022\212\001\n\004List\022/.yandex.cloud.io" + "t.devices.v1.ListDevicesRequest\0320.yandex" + ".cloud.iot.devices.v1.ListDevicesRespons" + "e\"\037\202\323\344\223\002\031\022\027/iot-devices/v1/devices\022\243\001\n\006C" + "reate\0220.yandex.cloud.iot.devices.v1.Crea" + "teDeviceRequest\032!.yandex.cloud.operation" + ".Operation\"D\202\323\344\223\002\034\"\027/iot-devices/v1/devi" + "ces:\001*\262\322*\036\n\024CreateDeviceMetadata\022\006Device" + "\022\257\001\n\006Update\0220.yandex.cloud.iot.devices.v" + "1.UpdateDeviceRequest\032!.yandex.cloud.ope" + "ration.Operation\"P\202\323\344\223\002(2#/iot-devices/v" + "1/devices/{device_id}:\001*\262\322*\036\n\024UpdateDevi" + "ceMetadata\022\006Device\022\273\001\n\006Delete\0220.yandex.c" + "loud.iot.devices.v1.DeleteDeviceRequest\032" + "!.yandex.cloud.operation.Operation\"\\\202\323\344\223" + "\002%*#/iot-devices/v1/devices/{device_id}\262" + "\322*-\n\024DeleteDeviceMetadata\022\025google.protob" + "uf.Empty\022\305\001\n\020ListCertificates\022:.yandex.c" + "loud.iot.devices.v1.ListDeviceCertificat" + "esRequest\032;.yandex.cloud.iot.devices.v1." + "ListDeviceCertificatesResponse\"8\202\323\344\223\0022\0220" + "/iot-devices/v1/devices/{device_id}/cert" + "ificates\022\337\001\n\016AddCertificate\0228.yandex.clo" + "ud.iot.devices.v1.AddDeviceCertificateRe" + "quest\032!.yandex.cloud.operation.Operation" + "\"p\202\323\344\223\0025\"0/iot-devices/v1/devices/{devic" + "e_id}/certificates:\001*\262\322*1\n\034AddDeviceCert" + "ificateMetadata\022\021DeviceCertificate\022\370\001\n\021D" + "eleteCertificate\022;.yandex.cloud.iot.devi" + "ces.v1.DeleteDeviceCertificateRequest\032!." + "yandex.cloud.operation.Operation\"\202\001\202\323\344\223\002" + "@*>/iot-devices/v1/devices/{device_id}/c" + "ertificates/{fingerprint}\262\322*8\n\037DeleteDev" + "iceCertificateMetadata\022\025google.protobuf." + "Empty\022\271\001\n\rListPasswords\0227.yandex.cloud.i" + "ot.devices.v1.ListDevicePasswordsRequest" + "\0328.yandex.cloud.iot.devices.v1.ListDevic" + "ePasswordsResponse\"5\202\323\344\223\002/\022-/iot-devices" + "/v1/devices/{device_id}/passwords\022\320\001\n\013Ad" + "dPassword\0225.yandex.cloud.iot.devices.v1." + "AddDevicePasswordRequest\032!.yandex.cloud." + "operation.Operation\"g\202\323\344\223\0022\"-/iot-device" + "s/v1/devices/{device_id}/passwords:\001*\262\322*" + "+\n\031AddDevicePasswordMetadata\022\016DevicePass" + "word\022\353\001\n\016DeletePassword\0228.yandex.cloud.i" + "ot.devices.v1.DeleteDevicePasswordReques" + "t\032!.yandex.cloud.operation.Operation\"|\202\323" + "\344\223\002=*;/iot-devices/v1/devices/{device_id" + "}/passwords/{password_id}\262\322*5\n\034DeleteDev" + "icePasswordMetadata\022\025google.protobuf.Emp" + "ty\022\275\001\n\016ListOperations\0228.yandex.cloud.iot" + ".devices.v1.ListDeviceOperationsRequest\032" + "9.yandex.cloud.iot.devices.v1.ListDevice" + "OperationsResponse\"6\202\323\344\223\0020\022./iot-devices" + "/v1/devices/{device_id}/operationsBj\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(), com.google.protobuf.FieldMaskProto.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), yandex.cloud.api.OperationOuterClass.getDescriptor(), yandex.cloud.api.operation.OperationOuterClass.getDescriptor(), yandex.cloud.api.iot.devices.v1.DeviceOuterClass.getDescriptor(), }); internal_static_yandex_cloud_iot_devices_v1_GetDeviceRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_iot_devices_v1_GetDeviceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_GetDeviceRequest_descriptor, new java.lang.String[] { "DeviceId", "DeviceView", }); internal_static_yandex_cloud_iot_devices_v1_GetByNameDeviceRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_iot_devices_v1_GetByNameDeviceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_GetByNameDeviceRequest_descriptor, new java.lang.String[] { "RegistryId", "DeviceName", "DeviceView", }); internal_static_yandex_cloud_iot_devices_v1_ListDevicesRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_iot_devices_v1_ListDevicesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_ListDevicesRequest_descriptor, new java.lang.String[] { "RegistryId", "FolderId", "PageSize", "PageToken", "DeviceView", "Id", }); internal_static_yandex_cloud_iot_devices_v1_ListDevicesResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_iot_devices_v1_ListDevicesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_ListDevicesResponse_descriptor, new java.lang.String[] { "Devices", "NextPageToken", }); internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_descriptor, new java.lang.String[] { "RegistryId", "Name", "Description", "Certificates", "TopicAliases", "Password", }); internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_TopicAliasesEntry_descriptor = internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_TopicAliasesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_TopicAliasesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_Certificate_descriptor = internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_descriptor.getNestedTypes().get(1); internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_Certificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_CreateDeviceRequest_Certificate_descriptor, new java.lang.String[] { "CertificateData", }); internal_static_yandex_cloud_iot_devices_v1_CreateDeviceMetadata_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_iot_devices_v1_CreateDeviceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_CreateDeviceMetadata_descriptor, new java.lang.String[] { "DeviceId", }); internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_descriptor, new java.lang.String[] { "DeviceId", "UpdateMask", "Name", "Description", "TopicAliases", }); internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_TopicAliasesEntry_descriptor = internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_TopicAliasesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceRequest_TopicAliasesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceMetadata_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_UpdateDeviceMetadata_descriptor, new java.lang.String[] { "DeviceId", }); internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceRequest_descriptor, new java.lang.String[] { "DeviceId", }); internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceMetadata_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceMetadata_descriptor, new java.lang.String[] { "DeviceId", }); internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesRequest_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesRequest_descriptor, new java.lang.String[] { "DeviceId", }); internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesResponse_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_ListDeviceCertificatesResponse_descriptor, new java.lang.String[] { "Certificates", }); internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateRequest_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateRequest_descriptor, new java.lang.String[] { "DeviceId", "CertificateData", }); internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateMetadata_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_AddDeviceCertificateMetadata_descriptor, new java.lang.String[] { "DeviceId", "Fingerprint", }); internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateRequest_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateRequest_descriptor, new java.lang.String[] { "DeviceId", "Fingerprint", }); internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateMetadata_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_DeleteDeviceCertificateMetadata_descriptor, new java.lang.String[] { "DeviceId", "Fingerprint", }); internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsRequest_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsRequest_descriptor, new java.lang.String[] { "DeviceId", }); internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsResponse_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_ListDevicePasswordsResponse_descriptor, new java.lang.String[] { "Passwords", }); internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordRequest_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordRequest_descriptor, new java.lang.String[] { "DeviceId", "Password", }); internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordMetadata_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_AddDevicePasswordMetadata_descriptor, new java.lang.String[] { "DeviceId", "PasswordId", }); internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordRequest_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordRequest_descriptor, new java.lang.String[] { "DeviceId", "PasswordId", }); internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordMetadata_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_DeleteDevicePasswordMetadata_descriptor, new java.lang.String[] { "DeviceId", "PasswordId", }); internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsRequest_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsRequest_descriptor, new java.lang.String[] { "DeviceId", "PageSize", "PageToken", "Filter", }); internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsResponse_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_ListDeviceOperationsResponse_descriptor, new java.lang.String[] { "Operations", "NextPageToken", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.AnnotationsProto.http); registry.add(yandex.cloud.api.OperationOuterClass.operation); registry.add(yandex.cloud.api.Validation.exactlyOne); registry.add(yandex.cloud.api.Validation.length); registry.add(yandex.cloud.api.Validation.pattern); registry.add(yandex.cloud.api.Validation.required); registry.add(yandex.cloud.api.Validation.value); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); yandex.cloud.api.OperationOuterClass.getDescriptor(); yandex.cloud.api.operation.OperationOuterClass.getDescriptor(); yandex.cloud.api.iot.devices.v1.DeviceOuterClass.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy