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

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

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

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

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code yandex.cloud.iot.devices.v1.DeviceView}
   */
  public enum DeviceView
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * 
     * Server responses without monitoring data.
     * The default value.
     * 
* * BASIC = 0; */ BASIC(0), /** *
     * Server responses with monitoring data.
     * 
* * FULL = 1; */ FULL(1), UNRECOGNIZED(-1), ; /** *
     * Server responses without monitoring data.
     * The default value.
     * 
* * BASIC = 0; */ public static final int BASIC_VALUE = 0; /** *
     * Server responses with monitoring data.
     * 
* * FULL = 1; */ public static final int FULL_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DeviceView valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static DeviceView forNumber(int value) { switch (value) { case 0: return BASIC; case 1: return FULL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< DeviceView> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DeviceView findValueByNumber(int number) { return DeviceView.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.getDescriptor().getEnumTypes().get(0); } private static final DeviceView[] VALUES = values(); public static DeviceView valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private DeviceView(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.iot.devices.v1.DeviceView) } public interface DeviceOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.Device) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the device.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the registry that the device belongs to.
     * 
* * string registry_id = 2; * @return The registryId. */ java.lang.String getRegistryId(); /** *
     * ID of the registry that the device belongs to.
     * 
* * string registry_id = 2; * @return The bytes for registryId. */ com.google.protobuf.ByteString getRegistryIdBytes(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Name of the device. The name is unique within the registry.
     * 
* * string name = 4; * @return The name. */ java.lang.String getName(); /** *
     * Name of the device. The name is unique within the registry.
     * 
* * string name = 4; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the device. 0-256 characters long.
     * 
* * string description = 5; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the device. 0-256 characters long.
     * 
* * string description = 5; * @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/abcdef/events`.
     * 
* * map<string, string> topic_aliases = 6; */ 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/abcdef/events`.
     * 
* * map<string, string> topic_aliases = 6; */ 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/abcdef/events`.
     * 
* * map<string, string> topic_aliases = 6; */ 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/abcdef/events`.
     * 
* * map<string, string> topic_aliases = 6; */ 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/abcdef/events`.
     * 
* * map<string, string> topic_aliases = 6; */ java.lang.String getTopicAliasesOrThrow( java.lang.String key); /** *
     * Status of the device.
     * 
* * .yandex.cloud.iot.devices.v1.Device.Status status = 7; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * Status of the device.
     * 
* * .yandex.cloud.iot.devices.v1.Device.Status status = 7; * @return The status. */ yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Status getStatus(); /** *
     * Device monitoring data, returns if FULL view specified.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; * @return Whether the monitoringData field is set. */ boolean hasMonitoringData(); /** *
     * Device monitoring data, returns if FULL view specified.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; * @return The monitoringData. */ yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData getMonitoringData(); /** *
     * Device monitoring data, returns if FULL view specified.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; */ yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringDataOrBuilder getMonitoringDataOrBuilder(); } /** *
   * A device. For more information, see [Device](/docs/iot-core/concepts/index#device).
   * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.Device} */ public static final class Device extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.Device) DeviceOrBuilder { private static final long serialVersionUID = 0L; // Use Device.newBuilder() to construct. private Device(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Device() { id_ = ""; registryId_ = ""; name_ = ""; description_ = ""; status_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Device(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Device( 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(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); registryId_ = s; break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 50: { 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; } case 56: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 66: { yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.Builder subBuilder = null; if (monitoringData_ != null) { subBuilder = monitoringData_.toBuilder(); } monitoringData_ = input.readMessage(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(monitoringData_); monitoringData_ = subBuilder.buildPartial(); } 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.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_Device_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: 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.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_Device_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.class, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Builder.class); } /** * Protobuf enum {@code yandex.cloud.iot.devices.v1.Device.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * STATUS_UNSPECIFIED = 0; */ STATUS_UNSPECIFIED(0), /** *
       * Device is being created.
       * 
* * CREATING = 1; */ CREATING(1), /** *
       * Device is ready to use.
       * 
* * ACTIVE = 2; */ ACTIVE(2), /** *
       * Device is being deleted.
       * 
* * DELETING = 3; */ DELETING(3), UNRECOGNIZED(-1), ; /** * STATUS_UNSPECIFIED = 0; */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** *
       * Device is being created.
       * 
* * CREATING = 1; */ public static final int CREATING_VALUE = 1; /** *
       * Device is ready to use.
       * 
* * ACTIVE = 2; */ public static final int ACTIVE_VALUE = 2; /** *
       * Device is being deleted.
       * 
* * DELETING = 3; */ public static final int DELETING_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Status forNumber(int value) { switch (value) { case 0: return STATUS_UNSPECIFIED; case 1: return CREATING; case 2: return ACTIVE; case 3: return DELETING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.iot.devices.v1.Device.Status) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the device.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object 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(); id_ = s; return s; } } /** *
     * ID of the device.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REGISTRY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object registryId_; /** *
     * ID of the registry that the device belongs to.
     * 
* * string registry_id = 2; * @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 that the device belongs to.
     * 
* * string registry_id = 2; * @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 CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
     * Name of the device. The name is unique within the registry.
     * 
* * string name = 4; * @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 is unique within the registry.
     * 
* * string name = 4; * @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 = 5; private volatile java.lang.Object description_; /** *
     * Description of the device. 0-256 characters long.
     * 
* * string description = 5; * @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. 0-256 characters long.
     * 
* * string description = 5; * @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 = 6; 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.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_Device_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/abcdef/events`.
     * 
* * map<string, string> topic_aliases = 6; */ @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/abcdef/events`.
     * 
* * map<string, string> topic_aliases = 6; */ @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/abcdef/events`.
     * 
* * map<string, string> topic_aliases = 6; */ @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/abcdef/events`.
     * 
* * map<string, string> topic_aliases = 6; */ @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 STATUS_FIELD_NUMBER = 7; private int status_; /** *
     * Status of the device.
     * 
* * .yandex.cloud.iot.devices.v1.Device.Status status = 7; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Status of the device.
     * 
* * .yandex.cloud.iot.devices.v1.Device.Status status = 7; * @return The status. */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Status result = yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Status.valueOf(status_); return result == null ? yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Status.UNRECOGNIZED : result; } public static final int MONITORING_DATA_FIELD_NUMBER = 8; private yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData monitoringData_; /** *
     * Device monitoring data, returns if FULL view specified.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; * @return Whether the monitoringData field is set. */ @java.lang.Override public boolean hasMonitoringData() { return monitoringData_ != null; } /** *
     * Device monitoring data, returns if FULL view specified.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; * @return The monitoringData. */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData getMonitoringData() { return monitoringData_ == null ? yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.getDefaultInstance() : monitoringData_; } /** *
     * Device monitoring data, returns if FULL view specified.
     * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringDataOrBuilder getMonitoringDataOrBuilder() { return getMonitoringData(); } 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, registryId_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetTopicAliases(), TopicAliasesDefaultEntryHolder.defaultEntry, 6); if (status_ != yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(7, status_); } if (monitoringData_ != null) { output.writeMessage(8, getMonitoringData()); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, registryId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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(6, topicAliases__); } if (status_ != yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, status_); } if (monitoringData_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getMonitoringData()); } 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.DeviceOuterClass.Device)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device other = (yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device) obj; if (!getId() .equals(other.getId())) return false; if (!getRegistryId() .equals(other.getRegistryId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetTopicAliases().equals( other.internalGetTopicAliases())) return false; if (status_ != other.status_) return false; if (hasMonitoringData() != other.hasMonitoringData()) return false; if (hasMonitoringData()) { if (!getMonitoringData() .equals(other.getMonitoringData())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + REGISTRY_ID_FIELD_NUMBER; hash = (53 * hash) + getRegistryId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().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 = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (hasMonitoringData()) { hash = (37 * hash) + MONITORING_DATA_FIELD_NUMBER; hash = (53 * hash) + getMonitoringData().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device 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.DeviceOuterClass.Device parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device 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.DeviceOuterClass.Device parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device 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.DeviceOuterClass.Device 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.DeviceOuterClass.Device 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.DeviceOuterClass.Device 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.DeviceOuterClass.Device 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.DeviceOuterClass.Device 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.DeviceOuterClass.Device 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.DeviceOuterClass.Device 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; } /** *
     * A device. For more information, see [Device](/docs/iot-core/concepts/index#device).
     * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.Device} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.Device) yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_Device_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetTopicAliases(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: 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.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_Device_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.class, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.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(); id_ = ""; registryId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableTopicAliases().clear(); status_ = 0; if (monitoringDataBuilder_ == null) { monitoringData_ = null; } else { monitoringData_ = null; monitoringDataBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_Device_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device build() { yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device result = new yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.registryId_ = registryId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.topicAliases_ = internalGetTopicAliases(); result.topicAliases_.makeImmutable(); result.status_ = status_; if (monitoringDataBuilder_ == null) { result.monitoringData_ = monitoringData_; } else { result.monitoringData_ = monitoringDataBuilder_.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.DeviceOuterClass.Device) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getRegistryId().isEmpty()) { registryId_ = other.registryId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableTopicAliases().mergeFrom( other.internalGetTopicAliases()); if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.hasMonitoringData()) { mergeMonitoringData(other.getMonitoringData()); } 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.DeviceOuterClass.Device parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the device.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the device.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the device.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the device.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the device.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object registryId_ = ""; /** *
       * ID of the registry that the device belongs to.
       * 
* * string registry_id = 2; * @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 that the device belongs to.
       * 
* * string registry_id = 2; * @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 that the device belongs to.
       * 
* * string registry_id = 2; * @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 that the device belongs to.
       * 
* * string registry_id = 2; * @return This builder for chaining. */ public Builder clearRegistryId() { registryId_ = getDefaultInstance().getRegistryId(); onChanged(); return this; } /** *
       * ID of the registry that the device belongs to.
       * 
* * string registry_id = 2; * @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 com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private java.lang.Object name_ = ""; /** *
       * Name of the device. The name is unique within the registry.
       * 
* * string name = 4; * @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 is unique within the registry.
       * 
* * string name = 4; * @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 is unique within the registry.
       * 
* * string name = 4; * @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 is unique within the registry.
       * 
* * string name = 4; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the device. The name is unique within the registry.
       * 
* * string name = 4; * @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. 0-256 characters long.
       * 
* * string description = 5; * @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. 0-256 characters long.
       * 
* * string description = 5; * @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. 0-256 characters long.
       * 
* * string description = 5; * @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. 0-256 characters long.
       * 
* * string description = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the device. 0-256 characters long.
       * 
* * string description = 5; * @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/abcdef/events`.
       * 
* * map<string, string> topic_aliases = 6; */ @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/abcdef/events`.
       * 
* * map<string, string> topic_aliases = 6; */ @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/abcdef/events`.
       * 
* * map<string, string> topic_aliases = 6; */ @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/abcdef/events`.
       * 
* * map<string, string> topic_aliases = 6; */ @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/abcdef/events`.
       * 
* * map<string, string> topic_aliases = 6; */ 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/abcdef/events`.
       * 
* * map<string, string> topic_aliases = 6; */ 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/abcdef/events`.
       * 
* * map<string, string> topic_aliases = 6; */ public Builder putAllTopicAliases( java.util.Map values) { internalGetMutableTopicAliases().getMutableMap() .putAll(values); return this; } private int status_ = 0; /** *
       * Status of the device.
       * 
* * .yandex.cloud.iot.devices.v1.Device.Status status = 7; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Status of the device.
       * 
* * .yandex.cloud.iot.devices.v1.Device.Status status = 7; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
       * Status of the device.
       * 
* * .yandex.cloud.iot.devices.v1.Device.Status status = 7; * @return The status. */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Status result = yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Status.valueOf(status_); return result == null ? yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Status.UNRECOGNIZED : result; } /** *
       * Status of the device.
       * 
* * .yandex.cloud.iot.devices.v1.Device.Status status = 7; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
       * Status of the device.
       * 
* * .yandex.cloud.iot.devices.v1.Device.Status status = 7; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData monitoringData_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.Builder, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringDataOrBuilder> monitoringDataBuilder_; /** *
       * Device monitoring data, returns if FULL view specified.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; * @return Whether the monitoringData field is set. */ public boolean hasMonitoringData() { return monitoringDataBuilder_ != null || monitoringData_ != null; } /** *
       * Device monitoring data, returns if FULL view specified.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; * @return The monitoringData. */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData getMonitoringData() { if (monitoringDataBuilder_ == null) { return monitoringData_ == null ? yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.getDefaultInstance() : monitoringData_; } else { return monitoringDataBuilder_.getMessage(); } } /** *
       * Device monitoring data, returns if FULL view specified.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; */ public Builder setMonitoringData(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData value) { if (monitoringDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } monitoringData_ = value; onChanged(); } else { monitoringDataBuilder_.setMessage(value); } return this; } /** *
       * Device monitoring data, returns if FULL view specified.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; */ public Builder setMonitoringData( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.Builder builderForValue) { if (monitoringDataBuilder_ == null) { monitoringData_ = builderForValue.build(); onChanged(); } else { monitoringDataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Device monitoring data, returns if FULL view specified.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; */ public Builder mergeMonitoringData(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData value) { if (monitoringDataBuilder_ == null) { if (monitoringData_ != null) { monitoringData_ = yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.newBuilder(monitoringData_).mergeFrom(value).buildPartial(); } else { monitoringData_ = value; } onChanged(); } else { monitoringDataBuilder_.mergeFrom(value); } return this; } /** *
       * Device monitoring data, returns if FULL view specified.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; */ public Builder clearMonitoringData() { if (monitoringDataBuilder_ == null) { monitoringData_ = null; onChanged(); } else { monitoringData_ = null; monitoringDataBuilder_ = null; } return this; } /** *
       * Device monitoring data, returns if FULL view specified.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.Builder getMonitoringDataBuilder() { onChanged(); return getMonitoringDataFieldBuilder().getBuilder(); } /** *
       * Device monitoring data, returns if FULL view specified.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; */ public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringDataOrBuilder getMonitoringDataOrBuilder() { if (monitoringDataBuilder_ != null) { return monitoringDataBuilder_.getMessageOrBuilder(); } else { return monitoringData_ == null ? yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.getDefaultInstance() : monitoringData_; } } /** *
       * Device monitoring data, returns if FULL view specified.
       * 
* * .yandex.cloud.iot.devices.v1.DeviceMonitoringData monitoring_data = 8; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.Builder, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringDataOrBuilder> getMonitoringDataFieldBuilder() { if (monitoringDataBuilder_ == null) { monitoringDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.Builder, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringDataOrBuilder>( getMonitoringData(), getParentForChildren(), isClean()); monitoringData_ = null; } return monitoringDataBuilder_; } @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.Device) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.Device) private static final yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device(); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.Device getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Device parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Device(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.DeviceOuterClass.Device getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeviceCertificateOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeviceCertificate) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device that the certificate belongs to.
     * 
* * string device_id = 1; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device that the certificate belongs to.
     * 
* * string device_id = 1; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** *
     * SHA256 hash of the certificate.
     * 
* * string fingerprint = 2; * @return The fingerprint. */ java.lang.String getFingerprint(); /** *
     * SHA256 hash of the certificate.
     * 
* * string fingerprint = 2; * @return The bytes for fingerprint. */ com.google.protobuf.ByteString getFingerprintBytes(); /** *
     * 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(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 4; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); } /** *
   * A device certificate. For more information, see [Managing device certificates](/docs/iot-core/operations/certificates/device-certificates).
   * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.DeviceCertificate} */ public static final class DeviceCertificate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeviceCertificate) DeviceCertificateOrBuilder { private static final long serialVersionUID = 0L; // Use DeviceCertificate.newBuilder() to construct. private DeviceCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeviceCertificate() { deviceId_ = ""; fingerprint_ = ""; certificateData_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeviceCertificate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeviceCertificate( 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; } case 26: { java.lang.String s = input.readStringRequireUtf8(); certificateData_ = s; break; } case 34: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } 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.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.class, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device that the certificate belongs to.
     * 
* * 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 the certificate belongs to.
     * 
* * 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_; /** *
     * SHA256 hash of the certificate.
     * 
* * 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; } } /** *
     * SHA256 hash of the certificate.
     * 
* * 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; } } 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; } } public static final int CREATED_AT_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 4; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } 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_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateData_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, certificateData_); } if (createdAt_ != null) { output.writeMessage(4, getCreatedAt()); } 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_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateData_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, certificateData_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCreatedAt()); } 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.DeviceOuterClass.DeviceCertificate)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate other = (yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate) obj; if (!getDeviceId() .equals(other.getDeviceId())) return false; if (!getFingerprint() .equals(other.getFingerprint())) return false; if (!getCertificateData() .equals(other.getCertificateData())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) 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 = (37 * hash) + CERTIFICATE_DATA_FIELD_NUMBER; hash = (53 * hash) + getCertificateData().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate 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.DeviceOuterClass.DeviceCertificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate 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.DeviceOuterClass.DeviceCertificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate 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.DeviceOuterClass.DeviceCertificate 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.DeviceOuterClass.DeviceCertificate 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.DeviceOuterClass.DeviceCertificate 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.DeviceOuterClass.DeviceCertificate 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.DeviceOuterClass.DeviceCertificate 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.DeviceOuterClass.DeviceCertificate 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.DeviceOuterClass.DeviceCertificate 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; } /** *
     * A device certificate. For more information, see [Managing device certificates](/docs/iot-core/operations/certificates/device-certificates).
     * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.DeviceCertificate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeviceCertificate) yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.class, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.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_ = ""; certificateData_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceCertificate_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate build() { yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate result = new yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate(this); result.deviceId_ = deviceId_; result.fingerprint_ = fingerprint_; result.certificateData_ = certificateData_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.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.DeviceOuterClass.DeviceCertificate) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } if (!other.getFingerprint().isEmpty()) { fingerprint_ = other.fingerprint_; onChanged(); } if (!other.getCertificateData().isEmpty()) { certificateData_ = other.certificateData_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } 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.DeviceOuterClass.DeviceCertificate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device that the certificate belongs to.
       * 
* * 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 the certificate belongs to.
       * 
* * 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 the certificate belongs to.
       * 
* * 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 the certificate belongs to.
       * 
* * string device_id = 1; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device that the certificate belongs to.
       * 
* * 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_ = ""; /** *
       * SHA256 hash of the certificate.
       * 
* * 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; } } /** *
       * SHA256 hash of the certificate.
       * 
* * 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; } } /** *
       * SHA256 hash of the certificate.
       * 
* * 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; } /** *
       * SHA256 hash of the certificate.
       * 
* * string fingerprint = 2; * @return This builder for chaining. */ public Builder clearFingerprint() { fingerprint_ = getDefaultInstance().getFingerprint(); onChanged(); return this; } /** *
       * SHA256 hash of the certificate.
       * 
* * 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; } 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; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 4; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 4; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } @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.DeviceCertificate) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeviceCertificate) private static final yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate(); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceCertificate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeviceCertificate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeviceCertificate(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.DeviceOuterClass.DeviceCertificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DevicePasswordOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DevicePassword) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device that the password belongs to.
     * 
* * string device_id = 1; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device that the password belongs to.
     * 
* * string device_id = 1; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** *
     * ID of the password.
     * 
* * string id = 2; * @return The id. */ java.lang.String getId(); /** *
     * ID of the password.
     * 
* * string id = 2; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); } /** *
   * A device password.
   * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.DevicePassword} */ public static final class DevicePassword extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DevicePassword) DevicePasswordOrBuilder { private static final long serialVersionUID = 0L; // Use DevicePassword.newBuilder() to construct. private DevicePassword(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DevicePassword() { deviceId_ = ""; id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DevicePassword(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DevicePassword( 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(); id_ = s; break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } 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.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DevicePassword_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DevicePassword_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.class, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device that the password belongs to.
     * 
* * 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 the password belongs to.
     * 
* * 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 ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** *
     * ID of the password.
     * 
* * string id = 2; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object 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(); id_ = s; return s; } } /** *
     * ID of the password.
     * 
* * string id = 2; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } 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.DeviceOuterClass.DevicePassword)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword other = (yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword) obj; if (!getDeviceId() .equals(other.getDeviceId())) return false; if (!getId() .equals(other.getId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword 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.DeviceOuterClass.DevicePassword parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword 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.DeviceOuterClass.DevicePassword parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword 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.DeviceOuterClass.DevicePassword 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.DeviceOuterClass.DevicePassword 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.DeviceOuterClass.DevicePassword 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.DeviceOuterClass.DevicePassword 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.DeviceOuterClass.DevicePassword 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.DeviceOuterClass.DevicePassword 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.DeviceOuterClass.DevicePassword 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; } /** *
     * A device password.
     * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.DevicePassword} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DevicePassword) yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePasswordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DevicePassword_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DevicePassword_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.class, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.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_ = ""; id_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DevicePassword_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword build() { yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword result = new yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword(this); result.deviceId_ = deviceId_; result.id_ = id_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.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.DeviceOuterClass.DevicePassword) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } 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.DeviceOuterClass.DevicePassword parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device that the password belongs to.
       * 
* * 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 the password belongs to.
       * 
* * 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 the password belongs to.
       * 
* * 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 the password belongs to.
       * 
* * string device_id = 1; * @return This builder for chaining. */ public Builder clearDeviceId() { deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } /** *
       * ID of the device that the password belongs to.
       * 
* * 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 id_ = ""; /** *
       * ID of the password.
       * 
* * string id = 2; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the password.
       * 
* * string id = 2; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the password.
       * 
* * string id = 2; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the password.
       * 
* * string id = 2; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the password.
       * 
* * string id = 2; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } @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.DevicePassword) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DevicePassword) private static final yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword(); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DevicePassword getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DevicePassword parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DevicePassword(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.DeviceOuterClass.DevicePassword getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeviceMonitoringDataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeviceMonitoringData) com.google.protobuf.MessageOrBuilder { /** * string last_auth_ip = 1; * @return The lastAuthIp. */ java.lang.String getLastAuthIp(); /** * string last_auth_ip = 1; * @return The bytes for lastAuthIp. */ com.google.protobuf.ByteString getLastAuthIpBytes(); /** * .google.protobuf.Timestamp last_auth_time = 2; * @return Whether the lastAuthTime field is set. */ boolean hasLastAuthTime(); /** * .google.protobuf.Timestamp last_auth_time = 2; * @return The lastAuthTime. */ com.google.protobuf.Timestamp getLastAuthTime(); /** * .google.protobuf.Timestamp last_auth_time = 2; */ com.google.protobuf.TimestampOrBuilder getLastAuthTimeOrBuilder(); /** * .google.protobuf.Timestamp last_pub_activity_time = 3; * @return Whether the lastPubActivityTime field is set. */ boolean hasLastPubActivityTime(); /** * .google.protobuf.Timestamp last_pub_activity_time = 3; * @return The lastPubActivityTime. */ com.google.protobuf.Timestamp getLastPubActivityTime(); /** * .google.protobuf.Timestamp last_pub_activity_time = 3; */ com.google.protobuf.TimestampOrBuilder getLastPubActivityTimeOrBuilder(); /** * .google.protobuf.Timestamp last_sub_activity_time = 4; * @return Whether the lastSubActivityTime field is set. */ boolean hasLastSubActivityTime(); /** * .google.protobuf.Timestamp last_sub_activity_time = 4; * @return The lastSubActivityTime. */ com.google.protobuf.Timestamp getLastSubActivityTime(); /** * .google.protobuf.Timestamp last_sub_activity_time = 4; */ com.google.protobuf.TimestampOrBuilder getLastSubActivityTimeOrBuilder(); /** * .google.protobuf.Timestamp last_online_time = 5; * @return Whether the lastOnlineTime field is set. */ boolean hasLastOnlineTime(); /** * .google.protobuf.Timestamp last_online_time = 5; * @return The lastOnlineTime. */ com.google.protobuf.Timestamp getLastOnlineTime(); /** * .google.protobuf.Timestamp last_online_time = 5; */ com.google.protobuf.TimestampOrBuilder getLastOnlineTimeOrBuilder(); } /** * Protobuf type {@code yandex.cloud.iot.devices.v1.DeviceMonitoringData} */ public static final class DeviceMonitoringData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeviceMonitoringData) DeviceMonitoringDataOrBuilder { private static final long serialVersionUID = 0L; // Use DeviceMonitoringData.newBuilder() to construct. private DeviceMonitoringData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeviceMonitoringData() { lastAuthIp_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeviceMonitoringData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeviceMonitoringData( 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(); lastAuthIp_ = s; break; } case 18: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (lastAuthTime_ != null) { subBuilder = lastAuthTime_.toBuilder(); } lastAuthTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastAuthTime_); lastAuthTime_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (lastPubActivityTime_ != null) { subBuilder = lastPubActivityTime_.toBuilder(); } lastPubActivityTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastPubActivityTime_); lastPubActivityTime_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (lastSubActivityTime_ != null) { subBuilder = lastSubActivityTime_.toBuilder(); } lastSubActivityTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastSubActivityTime_); lastSubActivityTime_ = subBuilder.buildPartial(); } break; } case 42: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (lastOnlineTime_ != null) { subBuilder = lastOnlineTime_.toBuilder(); } lastOnlineTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastOnlineTime_); lastOnlineTime_ = subBuilder.buildPartial(); } 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.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceMonitoringData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceMonitoringData_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.class, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.Builder.class); } public static final int LAST_AUTH_IP_FIELD_NUMBER = 1; private volatile java.lang.Object lastAuthIp_; /** * string last_auth_ip = 1; * @return The lastAuthIp. */ @java.lang.Override public java.lang.String getLastAuthIp() { java.lang.Object ref = lastAuthIp_; 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(); lastAuthIp_ = s; return s; } } /** * string last_auth_ip = 1; * @return The bytes for lastAuthIp. */ @java.lang.Override public com.google.protobuf.ByteString getLastAuthIpBytes() { java.lang.Object ref = lastAuthIp_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lastAuthIp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LAST_AUTH_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp lastAuthTime_; /** * .google.protobuf.Timestamp last_auth_time = 2; * @return Whether the lastAuthTime field is set. */ @java.lang.Override public boolean hasLastAuthTime() { return lastAuthTime_ != null; } /** * .google.protobuf.Timestamp last_auth_time = 2; * @return The lastAuthTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastAuthTime() { return lastAuthTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastAuthTime_; } /** * .google.protobuf.Timestamp last_auth_time = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastAuthTimeOrBuilder() { return getLastAuthTime(); } public static final int LAST_PUB_ACTIVITY_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp lastPubActivityTime_; /** * .google.protobuf.Timestamp last_pub_activity_time = 3; * @return Whether the lastPubActivityTime field is set. */ @java.lang.Override public boolean hasLastPubActivityTime() { return lastPubActivityTime_ != null; } /** * .google.protobuf.Timestamp last_pub_activity_time = 3; * @return The lastPubActivityTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastPubActivityTime() { return lastPubActivityTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastPubActivityTime_; } /** * .google.protobuf.Timestamp last_pub_activity_time = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastPubActivityTimeOrBuilder() { return getLastPubActivityTime(); } public static final int LAST_SUB_ACTIVITY_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp lastSubActivityTime_; /** * .google.protobuf.Timestamp last_sub_activity_time = 4; * @return Whether the lastSubActivityTime field is set. */ @java.lang.Override public boolean hasLastSubActivityTime() { return lastSubActivityTime_ != null; } /** * .google.protobuf.Timestamp last_sub_activity_time = 4; * @return The lastSubActivityTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastSubActivityTime() { return lastSubActivityTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSubActivityTime_; } /** * .google.protobuf.Timestamp last_sub_activity_time = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastSubActivityTimeOrBuilder() { return getLastSubActivityTime(); } public static final int LAST_ONLINE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp lastOnlineTime_; /** * .google.protobuf.Timestamp last_online_time = 5; * @return Whether the lastOnlineTime field is set. */ @java.lang.Override public boolean hasLastOnlineTime() { return lastOnlineTime_ != null; } /** * .google.protobuf.Timestamp last_online_time = 5; * @return The lastOnlineTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastOnlineTime() { return lastOnlineTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastOnlineTime_; } /** * .google.protobuf.Timestamp last_online_time = 5; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastOnlineTimeOrBuilder() { return getLastOnlineTime(); } 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(lastAuthIp_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, lastAuthIp_); } if (lastAuthTime_ != null) { output.writeMessage(2, getLastAuthTime()); } if (lastPubActivityTime_ != null) { output.writeMessage(3, getLastPubActivityTime()); } if (lastSubActivityTime_ != null) { output.writeMessage(4, getLastSubActivityTime()); } if (lastOnlineTime_ != null) { output.writeMessage(5, getLastOnlineTime()); } 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(lastAuthIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, lastAuthIp_); } if (lastAuthTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLastAuthTime()); } if (lastPubActivityTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLastPubActivityTime()); } if (lastSubActivityTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getLastSubActivityTime()); } if (lastOnlineTime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLastOnlineTime()); } 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.DeviceOuterClass.DeviceMonitoringData)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData other = (yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData) obj; if (!getLastAuthIp() .equals(other.getLastAuthIp())) return false; if (hasLastAuthTime() != other.hasLastAuthTime()) return false; if (hasLastAuthTime()) { if (!getLastAuthTime() .equals(other.getLastAuthTime())) return false; } if (hasLastPubActivityTime() != other.hasLastPubActivityTime()) return false; if (hasLastPubActivityTime()) { if (!getLastPubActivityTime() .equals(other.getLastPubActivityTime())) return false; } if (hasLastSubActivityTime() != other.hasLastSubActivityTime()) return false; if (hasLastSubActivityTime()) { if (!getLastSubActivityTime() .equals(other.getLastSubActivityTime())) return false; } if (hasLastOnlineTime() != other.hasLastOnlineTime()) return false; if (hasLastOnlineTime()) { if (!getLastOnlineTime() .equals(other.getLastOnlineTime())) 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) + LAST_AUTH_IP_FIELD_NUMBER; hash = (53 * hash) + getLastAuthIp().hashCode(); if (hasLastAuthTime()) { hash = (37 * hash) + LAST_AUTH_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastAuthTime().hashCode(); } if (hasLastPubActivityTime()) { hash = (37 * hash) + LAST_PUB_ACTIVITY_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastPubActivityTime().hashCode(); } if (hasLastSubActivityTime()) { hash = (37 * hash) + LAST_SUB_ACTIVITY_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastSubActivityTime().hashCode(); } if (hasLastOnlineTime()) { hash = (37 * hash) + LAST_ONLINE_TIME_FIELD_NUMBER; hash = (53 * hash) + getLastOnlineTime().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData 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.DeviceOuterClass.DeviceMonitoringData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData 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.DeviceOuterClass.DeviceMonitoringData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData 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.DeviceOuterClass.DeviceMonitoringData 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.DeviceOuterClass.DeviceMonitoringData 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.DeviceOuterClass.DeviceMonitoringData 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.DeviceOuterClass.DeviceMonitoringData 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.DeviceOuterClass.DeviceMonitoringData 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.DeviceOuterClass.DeviceMonitoringData 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.DeviceOuterClass.DeviceMonitoringData 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.DeviceMonitoringData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeviceMonitoringData) yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceMonitoringData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceMonitoringData_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.class, yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.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(); lastAuthIp_ = ""; if (lastAuthTimeBuilder_ == null) { lastAuthTime_ = null; } else { lastAuthTime_ = null; lastAuthTimeBuilder_ = null; } if (lastPubActivityTimeBuilder_ == null) { lastPubActivityTime_ = null; } else { lastPubActivityTime_ = null; lastPubActivityTimeBuilder_ = null; } if (lastSubActivityTimeBuilder_ == null) { lastSubActivityTime_ = null; } else { lastSubActivityTime_ = null; lastSubActivityTimeBuilder_ = null; } if (lastOnlineTimeBuilder_ == null) { lastOnlineTime_ = null; } else { lastOnlineTime_ = null; lastOnlineTimeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceMonitoringData_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData build() { yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData buildPartial() { yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData result = new yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData(this); result.lastAuthIp_ = lastAuthIp_; if (lastAuthTimeBuilder_ == null) { result.lastAuthTime_ = lastAuthTime_; } else { result.lastAuthTime_ = lastAuthTimeBuilder_.build(); } if (lastPubActivityTimeBuilder_ == null) { result.lastPubActivityTime_ = lastPubActivityTime_; } else { result.lastPubActivityTime_ = lastPubActivityTimeBuilder_.build(); } if (lastSubActivityTimeBuilder_ == null) { result.lastSubActivityTime_ = lastSubActivityTime_; } else { result.lastSubActivityTime_ = lastSubActivityTimeBuilder_.build(); } if (lastOnlineTimeBuilder_ == null) { result.lastOnlineTime_ = lastOnlineTime_; } else { result.lastOnlineTime_ = lastOnlineTimeBuilder_.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.DeviceOuterClass.DeviceMonitoringData) { return mergeFrom((yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData other) { if (other == yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData.getDefaultInstance()) return this; if (!other.getLastAuthIp().isEmpty()) { lastAuthIp_ = other.lastAuthIp_; onChanged(); } if (other.hasLastAuthTime()) { mergeLastAuthTime(other.getLastAuthTime()); } if (other.hasLastPubActivityTime()) { mergeLastPubActivityTime(other.getLastPubActivityTime()); } if (other.hasLastSubActivityTime()) { mergeLastSubActivityTime(other.getLastSubActivityTime()); } if (other.hasLastOnlineTime()) { mergeLastOnlineTime(other.getLastOnlineTime()); } 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.DeviceOuterClass.DeviceMonitoringData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object lastAuthIp_ = ""; /** * string last_auth_ip = 1; * @return The lastAuthIp. */ public java.lang.String getLastAuthIp() { java.lang.Object ref = lastAuthIp_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastAuthIp_ = s; return s; } else { return (java.lang.String) ref; } } /** * string last_auth_ip = 1; * @return The bytes for lastAuthIp. */ public com.google.protobuf.ByteString getLastAuthIpBytes() { java.lang.Object ref = lastAuthIp_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lastAuthIp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string last_auth_ip = 1; * @param value The lastAuthIp to set. * @return This builder for chaining. */ public Builder setLastAuthIp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } lastAuthIp_ = value; onChanged(); return this; } /** * string last_auth_ip = 1; * @return This builder for chaining. */ public Builder clearLastAuthIp() { lastAuthIp_ = getDefaultInstance().getLastAuthIp(); onChanged(); return this; } /** * string last_auth_ip = 1; * @param value The bytes for lastAuthIp to set. * @return This builder for chaining. */ public Builder setLastAuthIpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lastAuthIp_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp lastAuthTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastAuthTimeBuilder_; /** * .google.protobuf.Timestamp last_auth_time = 2; * @return Whether the lastAuthTime field is set. */ public boolean hasLastAuthTime() { return lastAuthTimeBuilder_ != null || lastAuthTime_ != null; } /** * .google.protobuf.Timestamp last_auth_time = 2; * @return The lastAuthTime. */ public com.google.protobuf.Timestamp getLastAuthTime() { if (lastAuthTimeBuilder_ == null) { return lastAuthTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastAuthTime_; } else { return lastAuthTimeBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp last_auth_time = 2; */ public Builder setLastAuthTime(com.google.protobuf.Timestamp value) { if (lastAuthTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastAuthTime_ = value; onChanged(); } else { lastAuthTimeBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp last_auth_time = 2; */ public Builder setLastAuthTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastAuthTimeBuilder_ == null) { lastAuthTime_ = builderForValue.build(); onChanged(); } else { lastAuthTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp last_auth_time = 2; */ public Builder mergeLastAuthTime(com.google.protobuf.Timestamp value) { if (lastAuthTimeBuilder_ == null) { if (lastAuthTime_ != null) { lastAuthTime_ = com.google.protobuf.Timestamp.newBuilder(lastAuthTime_).mergeFrom(value).buildPartial(); } else { lastAuthTime_ = value; } onChanged(); } else { lastAuthTimeBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp last_auth_time = 2; */ public Builder clearLastAuthTime() { if (lastAuthTimeBuilder_ == null) { lastAuthTime_ = null; onChanged(); } else { lastAuthTime_ = null; lastAuthTimeBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp last_auth_time = 2; */ public com.google.protobuf.Timestamp.Builder getLastAuthTimeBuilder() { onChanged(); return getLastAuthTimeFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp last_auth_time = 2; */ public com.google.protobuf.TimestampOrBuilder getLastAuthTimeOrBuilder() { if (lastAuthTimeBuilder_ != null) { return lastAuthTimeBuilder_.getMessageOrBuilder(); } else { return lastAuthTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastAuthTime_; } } /** * .google.protobuf.Timestamp last_auth_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastAuthTimeFieldBuilder() { if (lastAuthTimeBuilder_ == null) { lastAuthTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastAuthTime(), getParentForChildren(), isClean()); lastAuthTime_ = null; } return lastAuthTimeBuilder_; } private com.google.protobuf.Timestamp lastPubActivityTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastPubActivityTimeBuilder_; /** * .google.protobuf.Timestamp last_pub_activity_time = 3; * @return Whether the lastPubActivityTime field is set. */ public boolean hasLastPubActivityTime() { return lastPubActivityTimeBuilder_ != null || lastPubActivityTime_ != null; } /** * .google.protobuf.Timestamp last_pub_activity_time = 3; * @return The lastPubActivityTime. */ public com.google.protobuf.Timestamp getLastPubActivityTime() { if (lastPubActivityTimeBuilder_ == null) { return lastPubActivityTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastPubActivityTime_; } else { return lastPubActivityTimeBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp last_pub_activity_time = 3; */ public Builder setLastPubActivityTime(com.google.protobuf.Timestamp value) { if (lastPubActivityTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastPubActivityTime_ = value; onChanged(); } else { lastPubActivityTimeBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp last_pub_activity_time = 3; */ public Builder setLastPubActivityTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastPubActivityTimeBuilder_ == null) { lastPubActivityTime_ = builderForValue.build(); onChanged(); } else { lastPubActivityTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp last_pub_activity_time = 3; */ public Builder mergeLastPubActivityTime(com.google.protobuf.Timestamp value) { if (lastPubActivityTimeBuilder_ == null) { if (lastPubActivityTime_ != null) { lastPubActivityTime_ = com.google.protobuf.Timestamp.newBuilder(lastPubActivityTime_).mergeFrom(value).buildPartial(); } else { lastPubActivityTime_ = value; } onChanged(); } else { lastPubActivityTimeBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp last_pub_activity_time = 3; */ public Builder clearLastPubActivityTime() { if (lastPubActivityTimeBuilder_ == null) { lastPubActivityTime_ = null; onChanged(); } else { lastPubActivityTime_ = null; lastPubActivityTimeBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp last_pub_activity_time = 3; */ public com.google.protobuf.Timestamp.Builder getLastPubActivityTimeBuilder() { onChanged(); return getLastPubActivityTimeFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp last_pub_activity_time = 3; */ public com.google.protobuf.TimestampOrBuilder getLastPubActivityTimeOrBuilder() { if (lastPubActivityTimeBuilder_ != null) { return lastPubActivityTimeBuilder_.getMessageOrBuilder(); } else { return lastPubActivityTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastPubActivityTime_; } } /** * .google.protobuf.Timestamp last_pub_activity_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastPubActivityTimeFieldBuilder() { if (lastPubActivityTimeBuilder_ == null) { lastPubActivityTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastPubActivityTime(), getParentForChildren(), isClean()); lastPubActivityTime_ = null; } return lastPubActivityTimeBuilder_; } private com.google.protobuf.Timestamp lastSubActivityTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastSubActivityTimeBuilder_; /** * .google.protobuf.Timestamp last_sub_activity_time = 4; * @return Whether the lastSubActivityTime field is set. */ public boolean hasLastSubActivityTime() { return lastSubActivityTimeBuilder_ != null || lastSubActivityTime_ != null; } /** * .google.protobuf.Timestamp last_sub_activity_time = 4; * @return The lastSubActivityTime. */ public com.google.protobuf.Timestamp getLastSubActivityTime() { if (lastSubActivityTimeBuilder_ == null) { return lastSubActivityTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSubActivityTime_; } else { return lastSubActivityTimeBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp last_sub_activity_time = 4; */ public Builder setLastSubActivityTime(com.google.protobuf.Timestamp value) { if (lastSubActivityTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastSubActivityTime_ = value; onChanged(); } else { lastSubActivityTimeBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp last_sub_activity_time = 4; */ public Builder setLastSubActivityTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastSubActivityTimeBuilder_ == null) { lastSubActivityTime_ = builderForValue.build(); onChanged(); } else { lastSubActivityTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp last_sub_activity_time = 4; */ public Builder mergeLastSubActivityTime(com.google.protobuf.Timestamp value) { if (lastSubActivityTimeBuilder_ == null) { if (lastSubActivityTime_ != null) { lastSubActivityTime_ = com.google.protobuf.Timestamp.newBuilder(lastSubActivityTime_).mergeFrom(value).buildPartial(); } else { lastSubActivityTime_ = value; } onChanged(); } else { lastSubActivityTimeBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp last_sub_activity_time = 4; */ public Builder clearLastSubActivityTime() { if (lastSubActivityTimeBuilder_ == null) { lastSubActivityTime_ = null; onChanged(); } else { lastSubActivityTime_ = null; lastSubActivityTimeBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp last_sub_activity_time = 4; */ public com.google.protobuf.Timestamp.Builder getLastSubActivityTimeBuilder() { onChanged(); return getLastSubActivityTimeFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp last_sub_activity_time = 4; */ public com.google.protobuf.TimestampOrBuilder getLastSubActivityTimeOrBuilder() { if (lastSubActivityTimeBuilder_ != null) { return lastSubActivityTimeBuilder_.getMessageOrBuilder(); } else { return lastSubActivityTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSubActivityTime_; } } /** * .google.protobuf.Timestamp last_sub_activity_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastSubActivityTimeFieldBuilder() { if (lastSubActivityTimeBuilder_ == null) { lastSubActivityTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastSubActivityTime(), getParentForChildren(), isClean()); lastSubActivityTime_ = null; } return lastSubActivityTimeBuilder_; } private com.google.protobuf.Timestamp lastOnlineTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastOnlineTimeBuilder_; /** * .google.protobuf.Timestamp last_online_time = 5; * @return Whether the lastOnlineTime field is set. */ public boolean hasLastOnlineTime() { return lastOnlineTimeBuilder_ != null || lastOnlineTime_ != null; } /** * .google.protobuf.Timestamp last_online_time = 5; * @return The lastOnlineTime. */ public com.google.protobuf.Timestamp getLastOnlineTime() { if (lastOnlineTimeBuilder_ == null) { return lastOnlineTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastOnlineTime_; } else { return lastOnlineTimeBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp last_online_time = 5; */ public Builder setLastOnlineTime(com.google.protobuf.Timestamp value) { if (lastOnlineTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastOnlineTime_ = value; onChanged(); } else { lastOnlineTimeBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp last_online_time = 5; */ public Builder setLastOnlineTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastOnlineTimeBuilder_ == null) { lastOnlineTime_ = builderForValue.build(); onChanged(); } else { lastOnlineTimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp last_online_time = 5; */ public Builder mergeLastOnlineTime(com.google.protobuf.Timestamp value) { if (lastOnlineTimeBuilder_ == null) { if (lastOnlineTime_ != null) { lastOnlineTime_ = com.google.protobuf.Timestamp.newBuilder(lastOnlineTime_).mergeFrom(value).buildPartial(); } else { lastOnlineTime_ = value; } onChanged(); } else { lastOnlineTimeBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp last_online_time = 5; */ public Builder clearLastOnlineTime() { if (lastOnlineTimeBuilder_ == null) { lastOnlineTime_ = null; onChanged(); } else { lastOnlineTime_ = null; lastOnlineTimeBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp last_online_time = 5; */ public com.google.protobuf.Timestamp.Builder getLastOnlineTimeBuilder() { onChanged(); return getLastOnlineTimeFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp last_online_time = 5; */ public com.google.protobuf.TimestampOrBuilder getLastOnlineTimeOrBuilder() { if (lastOnlineTimeBuilder_ != null) { return lastOnlineTimeBuilder_.getMessageOrBuilder(); } else { return lastOnlineTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastOnlineTime_; } } /** * .google.protobuf.Timestamp last_online_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastOnlineTimeFieldBuilder() { if (lastOnlineTimeBuilder_ == null) { lastOnlineTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastOnlineTime(), getParentForChildren(), isClean()); lastOnlineTime_ = null; } return lastOnlineTimeBuilder_; } @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.DeviceMonitoringData) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeviceMonitoringData) private static final yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData(); } public static yandex.cloud.api.iot.devices.v1.DeviceOuterClass.DeviceMonitoringData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeviceMonitoringData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeviceMonitoringData(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.DeviceOuterClass.DeviceMonitoringData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_Device_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_Device_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_Device_TopicAliasesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_Device_TopicAliasesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_DeviceCertificate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_DeviceCertificate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_DevicePassword_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_DevicePassword_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_DeviceMonitoringData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_DeviceMonitoringData_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n(yandex/cloud/iot/devices/v1/device.pro" + "to\022\033yandex.cloud.iot.devices.v1\032\037google/" + "protobuf/timestamp.proto\"\321\003\n\006Device\022\n\n\002i" + "d\030\001 \001(\t\022\023\n\013registry_id\030\002 \001(\t\022.\n\ncreated_" + "at\030\003 \001(\0132\032.google.protobuf.Timestamp\022\014\n\004" + "name\030\004 \001(\t\022\023\n\013description\030\005 \001(\t\022L\n\rtopic" + "_aliases\030\006 \003(\01325.yandex.cloud.iot.device" + "s.v1.Device.TopicAliasesEntry\022:\n\006status\030" + "\007 \001(\0162*.yandex.cloud.iot.devices.v1.Devi" + "ce.Status\022J\n\017monitoring_data\030\010 \001(\01321.yan" + "dex.cloud.iot.devices.v1.DeviceMonitorin" + "gData\0323\n\021TopicAliasesEntry\022\013\n\003key\030\001 \001(\t\022" + "\r\n\005value\030\002 \001(\t:\0028\001\"H\n\006Status\022\026\n\022STATUS_U" + "NSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014" + "\n\010DELETING\020\003\"\205\001\n\021DeviceCertificate\022\021\n\tde" + "vice_id\030\001 \001(\t\022\023\n\013fingerprint\030\002 \001(\t\022\030\n\020ce" + "rtificate_data\030\003 \001(\t\022.\n\ncreated_at\030\004 \001(\013" + "2\032.google.protobuf.Timestamp\"_\n\016DevicePa" + "ssword\022\021\n\tdevice_id\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022.\n" + "\ncreated_at\030\003 \001(\0132\032.google.protobuf.Time" + "stamp\"\216\002\n\024DeviceMonitoringData\022\024\n\014last_a" + "uth_ip\030\001 \001(\t\0222\n\016last_auth_time\030\002 \001(\0132\032.g" + "oogle.protobuf.Timestamp\022:\n\026last_pub_act" + "ivity_time\030\003 \001(\0132\032.google.protobuf.Times" + "tamp\022:\n\026last_sub_activity_time\030\004 \001(\0132\032.g" + "oogle.protobuf.Timestamp\0224\n\020last_online_" + "time\030\005 \001(\0132\032.google.protobuf.Timestamp*!" + "\n\nDeviceView\022\t\n\005BASIC\020\000\022\010\n\004FULL\020\001Bj\n\037yan" + "dex.cloud.api.iot.devices.v1ZGgithub.com" + "/yandex-cloud/go-genproto/yandex/cloud/i" + "ot/devices/v1;devicesb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_yandex_cloud_iot_devices_v1_Device_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_iot_devices_v1_Device_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_Device_descriptor, new java.lang.String[] { "Id", "RegistryId", "CreatedAt", "Name", "Description", "TopicAliases", "Status", "MonitoringData", }); internal_static_yandex_cloud_iot_devices_v1_Device_TopicAliasesEntry_descriptor = internal_static_yandex_cloud_iot_devices_v1_Device_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_iot_devices_v1_Device_TopicAliasesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_Device_TopicAliasesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_iot_devices_v1_DeviceCertificate_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_iot_devices_v1_DeviceCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_DeviceCertificate_descriptor, new java.lang.String[] { "DeviceId", "Fingerprint", "CertificateData", "CreatedAt", }); internal_static_yandex_cloud_iot_devices_v1_DevicePassword_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_iot_devices_v1_DevicePassword_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_DevicePassword_descriptor, new java.lang.String[] { "DeviceId", "Id", "CreatedAt", }); internal_static_yandex_cloud_iot_devices_v1_DeviceMonitoringData_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_iot_devices_v1_DeviceMonitoringData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_DeviceMonitoringData_descriptor, new java.lang.String[] { "LastAuthIp", "LastAuthTime", "LastPubActivityTime", "LastSubActivityTime", "LastOnlineTime", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy