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

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

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

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

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface RegistryOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.Registry)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the registry.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the registry.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the folder that the registry belongs to.
     * 
* * string folder_id = 2; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder that the registry belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * 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 registry. The name is unique within the folder.
     * 
* * string name = 4; * @return The name. */ java.lang.String getName(); /** *
     * Name of the registry. The name is unique within the folder.
     * 
* * string name = 4; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the registry. 0-256 characters long.
     * 
* * string description = 5; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the registry. 0-256 characters long.
     * 
* * string description = 5; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Resource labels as `key:value` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ int getLabelsCount(); /** *
     * Resource labels as `key:value` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Resource labels as `key:value` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ java.util.Map getLabelsMap(); /** *
     * Resource labels as `key:value` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Resource labels as `key:value` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * Status of the registry.
     * 
* * .yandex.cloud.iot.devices.v1.Registry.Status status = 7; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * Status of the registry.
     * 
* * .yandex.cloud.iot.devices.v1.Registry.Status status = 7; * @return The status. */ yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Status getStatus(); /** *
     * ID of the logs group for the specified registry.
     * 
* * string log_group_id = 8; * @return The logGroupId. */ java.lang.String getLogGroupId(); /** *
     * ID of the logs group for the specified registry.
     * 
* * string log_group_id = 8; * @return The bytes for logGroupId. */ com.google.protobuf.ByteString getLogGroupIdBytes(); } /** *
   * A registry. For more information, see [Registry](/docs/iot-core/concepts/index#registry).
   * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.Registry} */ public static final class Registry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.Registry) RegistryOrBuilder { private static final long serialVersionUID = 0L; // Use Registry.newBuilder() to construct. private Registry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Registry() { id_ = ""; folderId_ = ""; name_ = ""; description_ = ""; status_ = 0; logGroupId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Registry(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Registry( 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(); folderId_ = 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)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 56: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); logGroupId_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_Registry_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); 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.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_Registry_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.class, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Builder.class); } /** * Protobuf enum {@code yandex.cloud.iot.devices.v1.Registry.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * STATUS_UNSPECIFIED = 0; */ STATUS_UNSPECIFIED(0), /** *
       * Registry is being created.
       * 
* * CREATING = 1; */ CREATING(1), /** *
       * Registry is ready to use.
       * 
* * ACTIVE = 2; */ ACTIVE(2), /** *
       * Registry is being deleted.
       * 
* * DELETING = 3; */ DELETING(3), UNRECOGNIZED(-1), ; /** * STATUS_UNSPECIFIED = 0; */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** *
       * Registry is being created.
       * 
* * CREATING = 1; */ public static final int CREATING_VALUE = 1; /** *
       * Registry is ready to use.
       * 
* * ACTIVE = 2; */ public static final int ACTIVE_VALUE = 2; /** *
       * Registry 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.RegistryOuterClass.Registry.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.Registry.Status) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the registry.
     * 
* * 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 registry.
     * 
* * 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 FOLDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object folderId_; /** *
     * ID of the folder that the registry belongs to.
     * 
* * string folder_id = 2; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = folderId_; 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(); folderId_ = s; return s; } } /** *
     * ID of the folder that the registry belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = 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 registry. The name is unique within the folder.
     * 
* * 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 registry. The name is unique within the folder.
     * 
* * 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 registry. 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 registry. 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 LABELS_FIELD_NUMBER = 6; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_Registry_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * Resource labels as `key:value` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Resource labels as `key:value` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Resource labels as `key:value` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Resource labels as `key:value` pairs. Maximum of 64 per resource.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().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 registry.
     * 
* * .yandex.cloud.iot.devices.v1.Registry.Status status = 7; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Status of the registry.
     * 
* * .yandex.cloud.iot.devices.v1.Registry.Status status = 7; * @return The status. */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Status result = yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Status.valueOf(status_); return result == null ? yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Status.UNRECOGNIZED : result; } public static final int LOG_GROUP_ID_FIELD_NUMBER = 8; private volatile java.lang.Object logGroupId_; /** *
     * ID of the logs group for the specified registry.
     * 
* * string log_group_id = 8; * @return The logGroupId. */ @java.lang.Override public java.lang.String getLogGroupId() { java.lang.Object ref = logGroupId_; 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(); logGroupId_ = s; return s; } } /** *
     * ID of the logs group for the specified registry.
     * 
* * string log_group_id = 8; * @return The bytes for logGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getLogGroupIdBytes() { java.lang.Object ref = logGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_); } 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, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); if (status_ != yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(7, status_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, logGroupId_); } 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(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_); } 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 : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, labels__); } if (status_ != yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, status_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, logGroupId_); } 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.RegistryOuterClass.Registry)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry other = (yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry) obj; if (!getId() .equals(other.getId())) return false; if (!getFolderId() .equals(other.getFolderId())) 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 (!internalGetLabels().equals( other.internalGetLabels())) return false; if (status_ != other.status_) return false; if (!getLogGroupId() .equals(other.getLogGroupId())) 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) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().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 (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; hash = (37 * hash) + LOG_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getLogGroupId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry 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.RegistryOuterClass.Registry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry 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.RegistryOuterClass.Registry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry 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.RegistryOuterClass.Registry 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.RegistryOuterClass.Registry 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.RegistryOuterClass.Registry 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.RegistryOuterClass.Registry 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.RegistryOuterClass.Registry 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.RegistryOuterClass.Registry 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.RegistryOuterClass.Registry 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 registry. For more information, see [Registry](/docs/iot-core/concepts/index#registry).
     * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.Registry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.Registry) yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_Registry_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: return internalGetMutableLabels(); 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.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_Registry_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.class, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.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_ = ""; folderId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableLabels().clear(); status_ = 0; logGroupId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_Registry_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry build() { yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry buildPartial() { yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry result = new yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.folderId_ = folderId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.status_ = status_; result.logGroupId_ = logGroupId_; 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.RegistryOuterClass.Registry) { return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry other) { if (other == yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (!other.getLogGroupId().isEmpty()) { logGroupId_ = other.logGroupId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the registry.
       * 
* * 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 registry.
       * 
* * 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 registry.
       * 
* * 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 registry.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the registry.
       * 
* * 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 folderId_ = ""; /** *
       * ID of the folder that the registry belongs to.
       * 
* * string folder_id = 2; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the folder that the registry belongs to.
       * 
* * string folder_id = 2; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the folder that the registry belongs to.
       * 
* * string folder_id = 2; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } folderId_ = value; onChanged(); return this; } /** *
       * ID of the folder that the registry belongs to.
       * 
* * string folder_id = 2; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder that the registry belongs to.
       * 
* * string folder_id = 2; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = 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 registry. The name is unique within the folder.
       * 
* * 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 registry. The name is unique within the folder.
       * 
* * 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 registry. The name is unique within the folder.
       * 
* * 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 registry. The name is unique within the folder.
       * 
* * string name = 4; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the registry. The name is unique within the folder.
       * 
* * 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 registry. 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 registry. 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 registry. 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 registry. 0-256 characters long.
       * 
* * string description = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the registry. 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> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * Resource labels as `key:value` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * Resource labels as `key:value` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Resource labels as `key:value` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Resource labels as `key:value` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * Resource labels as `key:value` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 6; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * Resource labels as `key:value` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 6; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * Resource labels as `key:value` pairs. Maximum of 64 per resource.
       * 
* * map<string, string> labels = 6; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private int status_ = 0; /** *
       * Status of the registry.
       * 
* * .yandex.cloud.iot.devices.v1.Registry.Status status = 7; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Status of the registry.
       * 
* * .yandex.cloud.iot.devices.v1.Registry.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 registry.
       * 
* * .yandex.cloud.iot.devices.v1.Registry.Status status = 7; * @return The status. */ @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Status result = yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Status.valueOf(status_); return result == null ? yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Status.UNRECOGNIZED : result; } /** *
       * Status of the registry.
       * 
* * .yandex.cloud.iot.devices.v1.Registry.Status status = 7; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
       * Status of the registry.
       * 
* * .yandex.cloud.iot.devices.v1.Registry.Status status = 7; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private java.lang.Object logGroupId_ = ""; /** *
       * ID of the logs group for the specified registry.
       * 
* * string log_group_id = 8; * @return The logGroupId. */ public java.lang.String getLogGroupId() { java.lang.Object ref = logGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the logs group for the specified registry.
       * 
* * string log_group_id = 8; * @return The bytes for logGroupId. */ public com.google.protobuf.ByteString getLogGroupIdBytes() { java.lang.Object ref = logGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the logs group for the specified registry.
       * 
* * string log_group_id = 8; * @param value The logGroupId to set. * @return This builder for chaining. */ public Builder setLogGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } logGroupId_ = value; onChanged(); return this; } /** *
       * ID of the logs group for the specified registry.
       * 
* * string log_group_id = 8; * @return This builder for chaining. */ public Builder clearLogGroupId() { logGroupId_ = getDefaultInstance().getLogGroupId(); onChanged(); return this; } /** *
       * ID of the logs group for the specified registry.
       * 
* * string log_group_id = 8; * @param value The bytes for logGroupId to set. * @return This builder for chaining. */ public Builder setLogGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logGroupId_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.Registry) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.Registry) private static final yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry(); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Registry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Registry(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.RegistryOuterClass.Registry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegistryCertificateOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.RegistryCertificate) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the registry that the certificate belongs to.
     * 
* * string registry_id = 1; * @return The registryId. */ java.lang.String getRegistryId(); /** *
     * ID of the registry that the certificate belongs to.
     * 
* * string registry_id = 1; * @return The bytes for registryId. */ com.google.protobuf.ByteString getRegistryIdBytes(); /** *
     * SHA256 hash of the certificates.
     * 
* * string fingerprint = 2; * @return The fingerprint. */ java.lang.String getFingerprint(); /** *
     * SHA256 hash of the certificates.
     * 
* * 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 registry certificate. For more information, see [Managing registry certificates](/docs/iot-core/operations/certificates/registry-certificates).
   * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.RegistryCertificate} */ public static final class RegistryCertificate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.RegistryCertificate) RegistryCertificateOrBuilder { private static final long serialVersionUID = 0L; // Use RegistryCertificate.newBuilder() to construct. private RegistryCertificate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegistryCertificate() { registryId_ = ""; fingerprint_ = ""; certificateData_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RegistryCertificate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegistryCertificate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); registryId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); 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.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_RegistryCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_RegistryCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.class, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.Builder.class); } public static final int REGISTRY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object registryId_; /** *
     * ID of the registry that the certificate belongs to.
     * 
* * string registry_id = 1; * @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 certificate belongs to.
     * 
* * string registry_id = 1; * @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 FINGERPRINT_FIELD_NUMBER = 2; private volatile java.lang.Object fingerprint_; /** *
     * SHA256 hash of the certificates.
     * 
* * 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 certificates.
     * 
* * 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(registryId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_); } 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(registryId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registryId_); } 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.RegistryOuterClass.RegistryCertificate)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate other = (yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate) obj; if (!getRegistryId() .equals(other.getRegistryId())) 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) + REGISTRY_ID_FIELD_NUMBER; hash = (53 * hash) + getRegistryId().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.RegistryOuterClass.RegistryCertificate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate 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.RegistryOuterClass.RegistryCertificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate 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.RegistryOuterClass.RegistryCertificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate 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.RegistryOuterClass.RegistryCertificate 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.RegistryOuterClass.RegistryCertificate 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.RegistryOuterClass.RegistryCertificate 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.RegistryOuterClass.RegistryCertificate 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.RegistryOuterClass.RegistryCertificate 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.RegistryOuterClass.RegistryCertificate 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.RegistryOuterClass.RegistryCertificate 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 registry certificate. For more information, see [Managing registry certificates](/docs/iot-core/operations/certificates/registry-certificates).
     * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.RegistryCertificate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.RegistryCertificate) yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_RegistryCertificate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_RegistryCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.class, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); registryId_ = ""; 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.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_RegistryCertificate_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate build() { yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate buildPartial() { yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate result = new yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate(this); result.registryId_ = registryId_; 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.RegistryOuterClass.RegistryCertificate) { return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate other) { if (other == yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.getDefaultInstance()) return this; if (!other.getRegistryId().isEmpty()) { registryId_ = other.registryId_; 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.RegistryOuterClass.RegistryCertificate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object registryId_ = ""; /** *
       * ID of the registry that the certificate belongs to.
       * 
* * string registry_id = 1; * @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 certificate belongs to.
       * 
* * string registry_id = 1; * @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 certificate belongs to.
       * 
* * string registry_id = 1; * @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 certificate belongs to.
       * 
* * string registry_id = 1; * @return This builder for chaining. */ public Builder clearRegistryId() { registryId_ = getDefaultInstance().getRegistryId(); onChanged(); return this; } /** *
       * ID of the registry that the certificate belongs to.
       * 
* * string registry_id = 1; * @param value The bytes for registryId to set. * @return This builder for chaining. */ public Builder setRegistryIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); registryId_ = value; onChanged(); return this; } private java.lang.Object fingerprint_ = ""; /** *
       * SHA256 hash of the certificates.
       * 
* * 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 certificates.
       * 
* * 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 certificates.
       * 
* * 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 certificates.
       * 
* * string fingerprint = 2; * @return This builder for chaining. */ public Builder clearFingerprint() { fingerprint_ = getDefaultInstance().getFingerprint(); onChanged(); return this; } /** *
       * SHA256 hash of the certificates.
       * 
* * 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.RegistryCertificate) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.RegistryCertificate) private static final yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate(); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RegistryCertificate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegistryCertificate(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.RegistryOuterClass.RegistryCertificate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeviceAliasOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeviceAlias) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the device that the alias belongs to.
     * 
* * string device_id = 1; * @return The deviceId. */ java.lang.String getDeviceId(); /** *
     * ID of the device that the alias belongs to.
     * 
* * string device_id = 1; * @return The bytes for deviceId. */ com.google.protobuf.ByteString getDeviceIdBytes(); /** *
     * Prefix of a canonical topic name to be aliased, e.g. `$devices/abcdef`.
     * 
* * string topic_prefix = 2; * @return The topicPrefix. */ java.lang.String getTopicPrefix(); /** *
     * Prefix of a canonical topic name to be aliased, e.g. `$devices/abcdef`.
     * 
* * string topic_prefix = 2; * @return The bytes for topicPrefix. */ com.google.protobuf.ByteString getTopicPrefixBytes(); /** *
     * Alias of a device topic.
     * 
* * string alias = 3; * @return The alias. */ java.lang.String getAlias(); /** *
     * Alias of a device topic.
     * 
* * string alias = 3; * @return The bytes for alias. */ com.google.protobuf.ByteString getAliasBytes(); } /** *
   * A device topic alias.
   * 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`. For more information, see [Using topic aliases](/docs/iot-core/concepts/topic#aliases).
   * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.DeviceAlias} */ public static final class DeviceAlias extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeviceAlias) DeviceAliasOrBuilder { private static final long serialVersionUID = 0L; // Use DeviceAlias.newBuilder() to construct. private DeviceAlias(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeviceAlias() { deviceId_ = ""; topicPrefix_ = ""; alias_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeviceAlias(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeviceAlias( 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(); topicPrefix_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); alias_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceAlias_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceAlias_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.class, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.Builder.class); } public static final int DEVICE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object deviceId_; /** *
     * ID of the device that the alias 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 alias 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 TOPIC_PREFIX_FIELD_NUMBER = 2; private volatile java.lang.Object topicPrefix_; /** *
     * Prefix of a canonical topic name to be aliased, e.g. `$devices/abcdef`.
     * 
* * string topic_prefix = 2; * @return The topicPrefix. */ @java.lang.Override public java.lang.String getTopicPrefix() { java.lang.Object ref = topicPrefix_; 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(); topicPrefix_ = s; return s; } } /** *
     * Prefix of a canonical topic name to be aliased, e.g. `$devices/abcdef`.
     * 
* * string topic_prefix = 2; * @return The bytes for topicPrefix. */ @java.lang.Override public com.google.protobuf.ByteString getTopicPrefixBytes() { java.lang.Object ref = topicPrefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); topicPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALIAS_FIELD_NUMBER = 3; private volatile java.lang.Object alias_; /** *
     * Alias of a device topic.
     * 
* * string alias = 3; * @return The alias. */ @java.lang.Override public java.lang.String getAlias() { java.lang.Object ref = alias_; 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(); alias_ = s; return s; } } /** *
     * Alias of a device topic.
     * 
* * string alias = 3; * @return The bytes for alias. */ @java.lang.Override public com.google.protobuf.ByteString getAliasBytes() { java.lang.Object ref = alias_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alias_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topicPrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topicPrefix_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, alias_); } 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(topicPrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topicPrefix_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, alias_); } 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.RegistryOuterClass.DeviceAlias)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias other = (yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias) obj; if (!getDeviceId() .equals(other.getDeviceId())) return false; if (!getTopicPrefix() .equals(other.getTopicPrefix())) return false; if (!getAlias() .equals(other.getAlias())) 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) + TOPIC_PREFIX_FIELD_NUMBER; hash = (53 * hash) + getTopicPrefix().hashCode(); hash = (37 * hash) + ALIAS_FIELD_NUMBER; hash = (53 * hash) + getAlias().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias 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.RegistryOuterClass.DeviceAlias parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias 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.RegistryOuterClass.DeviceAlias parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias 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.RegistryOuterClass.DeviceAlias 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.RegistryOuterClass.DeviceAlias 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.RegistryOuterClass.DeviceAlias 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.RegistryOuterClass.DeviceAlias 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.RegistryOuterClass.DeviceAlias 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.RegistryOuterClass.DeviceAlias 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.RegistryOuterClass.DeviceAlias 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 topic alias.
     * 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`. For more information, see [Using topic aliases](/docs/iot-core/concepts/topic#aliases).
     * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.DeviceAlias} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeviceAlias) yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAliasOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceAlias_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceAlias_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.class, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.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_ = ""; topicPrefix_ = ""; alias_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeviceAlias_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias build() { yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias buildPartial() { yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias result = new yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias(this); result.deviceId_ = deviceId_; result.topicPrefix_ = topicPrefix_; result.alias_ = alias_; 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.RegistryOuterClass.DeviceAlias) { return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias other) { if (other == yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.getDefaultInstance()) return this; if (!other.getDeviceId().isEmpty()) { deviceId_ = other.deviceId_; onChanged(); } if (!other.getTopicPrefix().isEmpty()) { topicPrefix_ = other.topicPrefix_; onChanged(); } if (!other.getAlias().isEmpty()) { alias_ = other.alias_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object deviceId_ = ""; /** *
       * ID of the device that the alias 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 alias 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 alias 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 alias 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 alias 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 topicPrefix_ = ""; /** *
       * Prefix of a canonical topic name to be aliased, e.g. `$devices/abcdef`.
       * 
* * string topic_prefix = 2; * @return The topicPrefix. */ public java.lang.String getTopicPrefix() { java.lang.Object ref = topicPrefix_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topicPrefix_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Prefix of a canonical topic name to be aliased, e.g. `$devices/abcdef`.
       * 
* * string topic_prefix = 2; * @return The bytes for topicPrefix. */ public com.google.protobuf.ByteString getTopicPrefixBytes() { java.lang.Object ref = topicPrefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); topicPrefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Prefix of a canonical topic name to be aliased, e.g. `$devices/abcdef`.
       * 
* * string topic_prefix = 2; * @param value The topicPrefix to set. * @return This builder for chaining. */ public Builder setTopicPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } topicPrefix_ = value; onChanged(); return this; } /** *
       * Prefix of a canonical topic name to be aliased, e.g. `$devices/abcdef`.
       * 
* * string topic_prefix = 2; * @return This builder for chaining. */ public Builder clearTopicPrefix() { topicPrefix_ = getDefaultInstance().getTopicPrefix(); onChanged(); return this; } /** *
       * Prefix of a canonical topic name to be aliased, e.g. `$devices/abcdef`.
       * 
* * string topic_prefix = 2; * @param value The bytes for topicPrefix to set. * @return This builder for chaining. */ public Builder setTopicPrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topicPrefix_ = value; onChanged(); return this; } private java.lang.Object alias_ = ""; /** *
       * Alias of a device topic.
       * 
* * string alias = 3; * @return The alias. */ public java.lang.String getAlias() { java.lang.Object ref = alias_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alias_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Alias of a device topic.
       * 
* * string alias = 3; * @return The bytes for alias. */ public com.google.protobuf.ByteString getAliasBytes() { java.lang.Object ref = alias_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alias_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Alias of a device topic.
       * 
* * string alias = 3; * @param value The alias to set. * @return This builder for chaining. */ public Builder setAlias( java.lang.String value) { if (value == null) { throw new NullPointerException(); } alias_ = value; onChanged(); return this; } /** *
       * Alias of a device topic.
       * 
* * string alias = 3; * @return This builder for chaining. */ public Builder clearAlias() { alias_ = getDefaultInstance().getAlias(); onChanged(); return this; } /** *
       * Alias of a device topic.
       * 
* * string alias = 3; * @param value The bytes for alias to set. * @return This builder for chaining. */ public Builder setAliasBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); alias_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.DeviceAlias) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeviceAlias) private static final yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias(); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeviceAlias parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeviceAlias(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.RegistryOuterClass.DeviceAlias getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegistryPasswordOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.RegistryPassword) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the registry that the password belongs to.
     * 
* * string registry_id = 1; * @return The registryId. */ java.lang.String getRegistryId(); /** *
     * ID of the registry that the password belongs to.
     * 
* * string registry_id = 1; * @return The bytes for registryId. */ com.google.protobuf.ByteString getRegistryIdBytes(); /** *
     * 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 registry password.
   * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.RegistryPassword} */ public static final class RegistryPassword extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.RegistryPassword) RegistryPasswordOrBuilder { private static final long serialVersionUID = 0L; // Use RegistryPassword.newBuilder() to construct. private RegistryPassword(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegistryPassword() { registryId_ = ""; id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RegistryPassword(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegistryPassword( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); registryId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); 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.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_RegistryPassword_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_RegistryPassword_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.class, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.Builder.class); } public static final int REGISTRY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object registryId_; /** *
     * ID of the registry that the password belongs to.
     * 
* * string registry_id = 1; * @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 password belongs to.
     * 
* * string registry_id = 1; * @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 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(registryId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_); } 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(registryId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registryId_); } 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.RegistryOuterClass.RegistryPassword)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword other = (yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword) obj; if (!getRegistryId() .equals(other.getRegistryId())) 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) + REGISTRY_ID_FIELD_NUMBER; hash = (53 * hash) + getRegistryId().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.RegistryOuterClass.RegistryPassword parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword 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.RegistryOuterClass.RegistryPassword parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword 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.RegistryOuterClass.RegistryPassword parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword 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.RegistryOuterClass.RegistryPassword 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.RegistryOuterClass.RegistryPassword 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.RegistryOuterClass.RegistryPassword 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.RegistryOuterClass.RegistryPassword 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.RegistryOuterClass.RegistryPassword 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.RegistryOuterClass.RegistryPassword 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.RegistryOuterClass.RegistryPassword 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 registry password.
     * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.RegistryPassword} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.RegistryPassword) yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPasswordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_RegistryPassword_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_RegistryPassword_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.class, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); registryId_ = ""; 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.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_RegistryPassword_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword build() { yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword buildPartial() { yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword result = new yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword(this); result.registryId_ = registryId_; 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.RegistryOuterClass.RegistryPassword) { return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword other) { if (other == yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.getDefaultInstance()) return this; if (!other.getRegistryId().isEmpty()) { registryId_ = other.registryId_; 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.RegistryOuterClass.RegistryPassword parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object registryId_ = ""; /** *
       * ID of the registry that the password belongs to.
       * 
* * string registry_id = 1; * @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 password belongs to.
       * 
* * string registry_id = 1; * @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 password belongs to.
       * 
* * string registry_id = 1; * @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 password belongs to.
       * 
* * string registry_id = 1; * @return This builder for chaining. */ public Builder clearRegistryId() { registryId_ = getDefaultInstance().getRegistryId(); onChanged(); return this; } /** *
       * ID of the registry that the password belongs to.
       * 
* * string registry_id = 1; * @param value The bytes for registryId to set. * @return This builder for chaining. */ public Builder setRegistryIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); registryId_ = value; onChanged(); return this; } private java.lang.Object 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.RegistryPassword) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.RegistryPassword) private static final yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword(); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RegistryPassword parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegistryPassword(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.RegistryOuterClass.RegistryPassword getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DataStreamExportOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DataStreamExport) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the YDS export.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the YDS export.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Name of the YDS export.
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * Name of the YDS export.
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * ID of the registry that the YDS export belongs to.
     * 
* * string registry_id = 3; * @return The registryId. */ java.lang.String getRegistryId(); /** *
     * ID of the registry that the YDS export belongs to.
     * 
* * string registry_id = 3; * @return The bytes for registryId. */ com.google.protobuf.ByteString getRegistryIdBytes(); /** *
     * MQTT topic whose messages export to YDS.
     * 
* * string mqtt_topic_filter = 4; * @return The mqttTopicFilter. */ java.lang.String getMqttTopicFilter(); /** *
     * MQTT topic whose messages export to YDS.
     * 
* * string mqtt_topic_filter = 4; * @return The bytes for mqttTopicFilter. */ com.google.protobuf.ByteString getMqttTopicFilterBytes(); /** *
     * YDS database.
     * 
* * string database = 5; * @return The database. */ java.lang.String getDatabase(); /** *
     * YDS database.
     * 
* * string database = 5; * @return The bytes for database. */ com.google.protobuf.ByteString getDatabaseBytes(); /** *
     * YDS stream name.
     * 
* * string stream = 6; * @return The stream. */ java.lang.String getStream(); /** *
     * YDS stream name.
     * 
* * string stream = 6; * @return The bytes for stream. */ com.google.protobuf.ByteString getStreamBytes(); /** *
     * ID of the service account which has permission to write to data stream.
     * 
* * string service_account_id = 7; * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** *
     * ID of the service account which has permission to write to data stream.
     * 
* * string service_account_id = 7; * @return The bytes for serviceAccountId. */ com.google.protobuf.ByteString getServiceAccountIdBytes(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 8; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 8; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 8; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); } /** *
   * A Yandex Data Streams export.
   * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.DataStreamExport} */ public static final class DataStreamExport extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DataStreamExport) DataStreamExportOrBuilder { private static final long serialVersionUID = 0L; // Use DataStreamExport.newBuilder() to construct. private DataStreamExport(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataStreamExport() { id_ = ""; name_ = ""; registryId_ = ""; mqttTopicFilter_ = ""; database_ = ""; stream_ = ""; serviceAccountId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DataStreamExport(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DataStreamExport( 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(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); registryId_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); mqttTopicFilter_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); database_ = s; break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); stream_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); serviceAccountId_ = s; break; } case 66: { 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.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_DataStreamExport_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_DataStreamExport_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport.class, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the YDS export.
     * 
* * 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 YDS export.
     * 
* * 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 NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * Name of the YDS export.
     * 
* * string name = 2; * @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 YDS export.
     * 
* * string name = 2; * @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 REGISTRY_ID_FIELD_NUMBER = 3; private volatile java.lang.Object registryId_; /** *
     * ID of the registry that the YDS export belongs to.
     * 
* * string registry_id = 3; * @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 YDS export belongs to.
     * 
* * string registry_id = 3; * @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 MQTT_TOPIC_FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object mqttTopicFilter_; /** *
     * MQTT topic whose messages export to YDS.
     * 
* * string mqtt_topic_filter = 4; * @return The mqttTopicFilter. */ @java.lang.Override public java.lang.String getMqttTopicFilter() { java.lang.Object ref = mqttTopicFilter_; 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(); mqttTopicFilter_ = s; return s; } } /** *
     * MQTT topic whose messages export to YDS.
     * 
* * string mqtt_topic_filter = 4; * @return The bytes for mqttTopicFilter. */ @java.lang.Override public com.google.protobuf.ByteString getMqttTopicFilterBytes() { java.lang.Object ref = mqttTopicFilter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mqttTopicFilter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATABASE_FIELD_NUMBER = 5; private volatile java.lang.Object database_; /** *
     * YDS database.
     * 
* * string database = 5; * @return The database. */ @java.lang.Override public java.lang.String getDatabase() { java.lang.Object ref = database_; 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(); database_ = s; return s; } } /** *
     * YDS database.
     * 
* * string database = 5; * @return The bytes for database. */ @java.lang.Override public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); database_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STREAM_FIELD_NUMBER = 6; private volatile java.lang.Object stream_; /** *
     * YDS stream name.
     * 
* * string stream = 6; * @return The stream. */ @java.lang.Override public java.lang.String getStream() { java.lang.Object ref = stream_; 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(); stream_ = s; return s; } } /** *
     * YDS stream name.
     * 
* * string stream = 6; * @return The bytes for stream. */ @java.lang.Override public com.google.protobuf.ByteString getStreamBytes() { java.lang.Object ref = stream_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stream_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 7; private volatile java.lang.Object serviceAccountId_; /** *
     * ID of the service account which has permission to write to data stream.
     * 
* * string service_account_id = 7; * @return The serviceAccountId. */ @java.lang.Override public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; 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(); serviceAccountId_ = s; return s; } } /** *
     * ID of the service account which has permission to write to data stream.
     * 
* * string service_account_id = 7; * @return The bytes for serviceAccountId. */ @java.lang.Override public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 8; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp.
     * 
* * .google.protobuf.Timestamp created_at = 8; * @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 = 8; */ @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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, registryId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mqttTopicFilter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, mqttTopicFilter_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, database_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stream_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, stream_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, serviceAccountId_); } if (createdAt_ != null) { output.writeMessage(8, 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, registryId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mqttTopicFilter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mqttTopicFilter_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, database_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stream_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, stream_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serviceAccountId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, 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.RegistryOuterClass.DataStreamExport)) { return super.equals(obj); } yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport other = (yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (!getRegistryId() .equals(other.getRegistryId())) return false; if (!getMqttTopicFilter() .equals(other.getMqttTopicFilter())) return false; if (!getDatabase() .equals(other.getDatabase())) return false; if (!getStream() .equals(other.getStream())) return false; if (!getServiceAccountId() .equals(other.getServiceAccountId())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + REGISTRY_ID_FIELD_NUMBER; hash = (53 * hash) + getRegistryId().hashCode(); hash = (37 * hash) + MQTT_TOPIC_FILTER_FIELD_NUMBER; hash = (53 * hash) + getMqttTopicFilter().hashCode(); hash = (37 * hash) + DATABASE_FIELD_NUMBER; hash = (53 * hash) + getDatabase().hashCode(); hash = (37 * hash) + STREAM_FIELD_NUMBER; hash = (53 * hash) + getStream().hashCode(); hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountId().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.RegistryOuterClass.DataStreamExport parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport 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.RegistryOuterClass.DataStreamExport parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport 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.RegistryOuterClass.DataStreamExport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport 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.RegistryOuterClass.DataStreamExport 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.RegistryOuterClass.DataStreamExport 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.RegistryOuterClass.DataStreamExport 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.RegistryOuterClass.DataStreamExport 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.RegistryOuterClass.DataStreamExport 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.RegistryOuterClass.DataStreamExport 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.RegistryOuterClass.DataStreamExport 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 Yandex Data Streams export.
     * 
* * Protobuf type {@code yandex.cloud.iot.devices.v1.DataStreamExport} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DataStreamExport) yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExportOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_DataStreamExport_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_DataStreamExport_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport.class, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport.Builder.class); } // Construct using yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport.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_ = ""; name_ = ""; registryId_ = ""; mqttTopicFilter_ = ""; database_ = ""; stream_ = ""; serviceAccountId_ = ""; 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.RegistryOuterClass.internal_static_yandex_cloud_iot_devices_v1_DataStreamExport_descriptor; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport getDefaultInstanceForType() { return yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport build() { yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport buildPartial() { yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport result = new yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport(this); result.id_ = id_; result.name_ = name_; result.registryId_ = registryId_; result.mqttTopicFilter_ = mqttTopicFilter_; result.database_ = database_; result.stream_ = stream_; result.serviceAccountId_ = serviceAccountId_; 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.RegistryOuterClass.DataStreamExport) { return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport other) { if (other == yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getRegistryId().isEmpty()) { registryId_ = other.registryId_; onChanged(); } if (!other.getMqttTopicFilter().isEmpty()) { mqttTopicFilter_ = other.mqttTopicFilter_; onChanged(); } if (!other.getDatabase().isEmpty()) { database_ = other.database_; onChanged(); } if (!other.getStream().isEmpty()) { stream_ = other.stream_; onChanged(); } if (!other.getServiceAccountId().isEmpty()) { serviceAccountId_ = other.serviceAccountId_; 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.RegistryOuterClass.DataStreamExport parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object id_ = ""; /** *
       * ID of the YDS export.
       * 
* * 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 YDS export.
       * 
* * 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 YDS export.
       * 
* * 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 YDS export.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the YDS export.
       * 
* * 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 name_ = ""; /** *
       * Name of the YDS export.
       * 
* * string name = 2; * @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 YDS export.
       * 
* * string name = 2; * @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 YDS export.
       * 
* * string name = 2; * @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 YDS export.
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the YDS export.
       * 
* * string name = 2; * @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 registryId_ = ""; /** *
       * ID of the registry that the YDS export belongs to.
       * 
* * string registry_id = 3; * @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 YDS export belongs to.
       * 
* * string registry_id = 3; * @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 YDS export belongs to.
       * 
* * string registry_id = 3; * @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 YDS export belongs to.
       * 
* * string registry_id = 3; * @return This builder for chaining. */ public Builder clearRegistryId() { registryId_ = getDefaultInstance().getRegistryId(); onChanged(); return this; } /** *
       * ID of the registry that the YDS export belongs to.
       * 
* * string registry_id = 3; * @param value The bytes for registryId to set. * @return This builder for chaining. */ public Builder setRegistryIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); registryId_ = value; onChanged(); return this; } private java.lang.Object mqttTopicFilter_ = ""; /** *
       * MQTT topic whose messages export to YDS.
       * 
* * string mqtt_topic_filter = 4; * @return The mqttTopicFilter. */ public java.lang.String getMqttTopicFilter() { java.lang.Object ref = mqttTopicFilter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mqttTopicFilter_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * MQTT topic whose messages export to YDS.
       * 
* * string mqtt_topic_filter = 4; * @return The bytes for mqttTopicFilter. */ public com.google.protobuf.ByteString getMqttTopicFilterBytes() { java.lang.Object ref = mqttTopicFilter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mqttTopicFilter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * MQTT topic whose messages export to YDS.
       * 
* * string mqtt_topic_filter = 4; * @param value The mqttTopicFilter to set. * @return This builder for chaining. */ public Builder setMqttTopicFilter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } mqttTopicFilter_ = value; onChanged(); return this; } /** *
       * MQTT topic whose messages export to YDS.
       * 
* * string mqtt_topic_filter = 4; * @return This builder for chaining. */ public Builder clearMqttTopicFilter() { mqttTopicFilter_ = getDefaultInstance().getMqttTopicFilter(); onChanged(); return this; } /** *
       * MQTT topic whose messages export to YDS.
       * 
* * string mqtt_topic_filter = 4; * @param value The bytes for mqttTopicFilter to set. * @return This builder for chaining. */ public Builder setMqttTopicFilterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mqttTopicFilter_ = value; onChanged(); return this; } private java.lang.Object database_ = ""; /** *
       * YDS database.
       * 
* * string database = 5; * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * YDS database.
       * 
* * string database = 5; * @return The bytes for database. */ public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); database_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * YDS database.
       * 
* * string database = 5; * @param value The database to set. * @return This builder for chaining. */ public Builder setDatabase( java.lang.String value) { if (value == null) { throw new NullPointerException(); } database_ = value; onChanged(); return this; } /** *
       * YDS database.
       * 
* * string database = 5; * @return This builder for chaining. */ public Builder clearDatabase() { database_ = getDefaultInstance().getDatabase(); onChanged(); return this; } /** *
       * YDS database.
       * 
* * string database = 5; * @param value The bytes for database to set. * @return This builder for chaining. */ public Builder setDatabaseBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; onChanged(); return this; } private java.lang.Object stream_ = ""; /** *
       * YDS stream name.
       * 
* * string stream = 6; * @return The stream. */ public java.lang.String getStream() { java.lang.Object ref = stream_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stream_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * YDS stream name.
       * 
* * string stream = 6; * @return The bytes for stream. */ public com.google.protobuf.ByteString getStreamBytes() { java.lang.Object ref = stream_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); stream_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * YDS stream name.
       * 
* * string stream = 6; * @param value The stream to set. * @return This builder for chaining. */ public Builder setStream( java.lang.String value) { if (value == null) { throw new NullPointerException(); } stream_ = value; onChanged(); return this; } /** *
       * YDS stream name.
       * 
* * string stream = 6; * @return This builder for chaining. */ public Builder clearStream() { stream_ = getDefaultInstance().getStream(); onChanged(); return this; } /** *
       * YDS stream name.
       * 
* * string stream = 6; * @param value The bytes for stream to set. * @return This builder for chaining. */ public Builder setStreamBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); stream_ = value; onChanged(); return this; } private java.lang.Object serviceAccountId_ = ""; /** *
       * ID of the service account which has permission to write to data stream.
       * 
* * string service_account_id = 7; * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the service account which has permission to write to data stream.
       * 
* * string service_account_id = 7; * @return The bytes for serviceAccountId. */ public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the service account which has permission to write to data stream.
       * 
* * string service_account_id = 7; * @param value The serviceAccountId to set. * @return This builder for chaining. */ public Builder setServiceAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serviceAccountId_ = value; onChanged(); return this; } /** *
       * ID of the service account which has permission to write to data stream.
       * 
* * string service_account_id = 7; * @return This builder for chaining. */ public Builder clearServiceAccountId() { serviceAccountId_ = getDefaultInstance().getServiceAccountId(); onChanged(); return this; } /** *
       * ID of the service account which has permission to write to data stream.
       * 
* * string service_account_id = 7; * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ public Builder setServiceAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccountId_ = 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 = 8; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 8; * @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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 8; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 8; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp.
       * 
* * .google.protobuf.Timestamp created_at = 8; */ 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 = 8; */ 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.DataStreamExport) } // @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DataStreamExport) private static final yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport(); } public static yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DataStreamExport parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DataStreamExport(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.RegistryOuterClass.DataStreamExport getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_Registry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_Registry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_Registry_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_Registry_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_RegistryCertificate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_RegistryCertificate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_DeviceAlias_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_DeviceAlias_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_RegistryPassword_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_RegistryPassword_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_iot_devices_v1_DataStreamExport_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_iot_devices_v1_DataStreamExport_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/registry.p" + "roto\022\033yandex.cloud.iot.devices.v1\032\037googl" + "e/protobuf/timestamp.proto\"\214\003\n\010Registry\022" + "\n\n\002id\030\001 \001(\t\022\021\n\tfolder_id\030\002 \001(\t\022.\n\ncreate" + "d_at\030\003 \001(\0132\032.google.protobuf.Timestamp\022\014" + "\n\004name\030\004 \001(\t\022\023\n\013description\030\005 \001(\t\022A\n\006lab" + "els\030\006 \003(\01321.yandex.cloud.iot.devices.v1." + "Registry.LabelsEntry\022<\n\006status\030\007 \001(\0162,.y" + "andex.cloud.iot.devices.v1.Registry.Stat" + "us\022\024\n\014log_group_id\030\010 \001(\t\032-\n\013LabelsEntry\022" + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\006Statu" + "s\022\026\n\022STATUS_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022" + "\n\n\006ACTIVE\020\002\022\014\n\010DELETING\020\003\"\211\001\n\023RegistryCe" + "rtificate\022\023\n\013registry_id\030\001 \001(\t\022\023\n\013finger" + "print\030\002 \001(\t\022\030\n\020certificate_data\030\003 \001(\t\022.\n" + "\ncreated_at\030\004 \001(\0132\032.google.protobuf.Time" + "stamp\"E\n\013DeviceAlias\022\021\n\tdevice_id\030\001 \001(\t\022" + "\024\n\014topic_prefix\030\002 \001(\t\022\r\n\005alias\030\003 \001(\t\"c\n\020" + "RegistryPassword\022\023\n\013registry_id\030\001 \001(\t\022\n\n" + "\002id\030\002 \001(\t\022.\n\ncreated_at\030\003 \001(\0132\032.google.p" + "rotobuf.Timestamp\"\312\001\n\020DataStreamExport\022\n" + "\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013registry_id\030" + "\003 \001(\t\022\031\n\021mqtt_topic_filter\030\004 \001(\t\022\020\n\010data" + "base\030\005 \001(\t\022\016\n\006stream\030\006 \001(\t\022\032\n\022service_ac" + "count_id\030\007 \001(\t\022.\n\ncreated_at\030\010 \001(\0132\032.goo" + "gle.protobuf.TimestampBj\n\037yandex.cloud.a" + "pi.iot.devices.v1ZGgithub.com/yandex-clo" + "ud/go-genproto/yandex/cloud/iot/devices/" + "v1;devicesb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_yandex_cloud_iot_devices_v1_Registry_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_iot_devices_v1_Registry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_Registry_descriptor, new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "Status", "LogGroupId", }); internal_static_yandex_cloud_iot_devices_v1_Registry_LabelsEntry_descriptor = internal_static_yandex_cloud_iot_devices_v1_Registry_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_iot_devices_v1_Registry_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_Registry_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_iot_devices_v1_RegistryCertificate_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_iot_devices_v1_RegistryCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_RegistryCertificate_descriptor, new java.lang.String[] { "RegistryId", "Fingerprint", "CertificateData", "CreatedAt", }); internal_static_yandex_cloud_iot_devices_v1_DeviceAlias_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_iot_devices_v1_DeviceAlias_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_DeviceAlias_descriptor, new java.lang.String[] { "DeviceId", "TopicPrefix", "Alias", }); internal_static_yandex_cloud_iot_devices_v1_RegistryPassword_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_iot_devices_v1_RegistryPassword_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_RegistryPassword_descriptor, new java.lang.String[] { "RegistryId", "Id", "CreatedAt", }); internal_static_yandex_cloud_iot_devices_v1_DataStreamExport_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_iot_devices_v1_DataStreamExport_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_iot_devices_v1_DataStreamExport_descriptor, new java.lang.String[] { "Id", "Name", "RegistryId", "MqttTopicFilter", "Database", "Stream", "ServiceAccountId", "CreatedAt", }); com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy