Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/iot/devices/v1/registry_service.proto
package yandex.cloud.api.iot.devices.v1;
public final class RegistryServiceOuterClass {
private RegistryServiceOuterClass() {}
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 GetRegistryRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.GetRegistryRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry to return.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry to return.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.GetRegistryRequest}
*/
public static final class GetRegistryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.GetRegistryRequest)
GetRegistryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetRegistryRequest.newBuilder() to construct.
private GetRegistryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetRegistryRequest() {
registryId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetRegistryRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetRegistryRequest(
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;
}
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetRegistryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetRegistryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry to return.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of the registry to return.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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_);
}
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_);
}
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.RegistryServiceOuterClass.GetRegistryRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest 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.RegistryServiceOuterClass.GetRegistryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest 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.RegistryServiceOuterClass.GetRegistryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest 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.RegistryServiceOuterClass.GetRegistryRequest 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.RegistryServiceOuterClass.GetRegistryRequest 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.RegistryServiceOuterClass.GetRegistryRequest 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.RegistryServiceOuterClass.GetRegistryRequest 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.RegistryServiceOuterClass.GetRegistryRequest 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.RegistryServiceOuterClass.GetRegistryRequest 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.RegistryServiceOuterClass.GetRegistryRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.GetRegistryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.GetRegistryRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetRegistryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetRegistryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetRegistryRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest(this);
result.registryId_ = registryId_;
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.RegistryServiceOuterClass.GetRegistryRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
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.RegistryServiceOuterClass.GetRegistryRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry to return.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the registry to return.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the registry to return.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of the registry to return.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry to return.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
@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.GetRegistryRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.GetRegistryRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetRegistryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetRegistryRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetRegistryRequest(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.RegistryServiceOuterClass.GetRegistryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetByNameRegistryRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.GetByNameRegistryRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* Name of the registry to return.
* To get a registry Name make a [RegistryService.List] request.
*
*
* string registry_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The registryName.
*/
java.lang.String getRegistryName();
/**
*
* Name of the registry to return.
* To get a registry Name make a [RegistryService.List] request.
*
*
* string registry_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryName.
*/
com.google.protobuf.ByteString
getRegistryNameBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.GetByNameRegistryRequest}
*/
public static final class GetByNameRegistryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.GetByNameRegistryRequest)
GetByNameRegistryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetByNameRegistryRequest.newBuilder() to construct.
private GetByNameRegistryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetByNameRegistryRequest() {
folderId_ = "";
registryName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetByNameRegistryRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetByNameRegistryRequest(
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();
folderId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
registryName_ = 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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetByNameRegistryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetByNameRegistryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 REGISTRY_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object registryName_;
/**
*
* Name of the registry to return.
* To get a registry Name make a [RegistryService.List] request.
*
*
* string registry_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The registryName.
*/
@java.lang.Override
public java.lang.String getRegistryName() {
java.lang.Object ref = registryName_;
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();
registryName_ = s;
return s;
}
}
/**
*
* Name of the registry to return.
* To get a registry Name make a [RegistryService.List] request.
*
*
* string registry_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryNameBytes() {
java.lang.Object ref = registryName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryName_ = 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(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, registryName_);
}
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(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, registryName_);
}
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.RegistryServiceOuterClass.GetByNameRegistryRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest) obj;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (!getRegistryName()
.equals(other.getRegistryName())) 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) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
hash = (37 * hash) + REGISTRY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getRegistryName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest 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.RegistryServiceOuterClass.GetByNameRegistryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest 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.RegistryServiceOuterClass.GetByNameRegistryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest 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.RegistryServiceOuterClass.GetByNameRegistryRequest 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.RegistryServiceOuterClass.GetByNameRegistryRequest 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.RegistryServiceOuterClass.GetByNameRegistryRequest 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.RegistryServiceOuterClass.GetByNameRegistryRequest 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.RegistryServiceOuterClass.GetByNameRegistryRequest 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.RegistryServiceOuterClass.GetByNameRegistryRequest 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.RegistryServiceOuterClass.GetByNameRegistryRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.GetByNameRegistryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.GetByNameRegistryRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetByNameRegistryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetByNameRegistryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest.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();
folderId_ = "";
registryName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_GetByNameRegistryRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest(this);
result.folderId_ = folderId_;
result.registryName_ = registryName_;
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.RegistryServiceOuterClass.GetByNameRegistryRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest.getDefaultInstance()) return this;
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (!other.getRegistryName().isEmpty()) {
registryName_ = other.registryName_;
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.RegistryServiceOuterClass.GetByNameRegistryRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
folderId_ = value;
onChanged();
return this;
}
private java.lang.Object registryName_ = "";
/**
*
* Name of the registry to return.
* To get a registry Name make a [RegistryService.List] request.
*
*
* string registry_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The registryName.
*/
public java.lang.String getRegistryName() {
java.lang.Object ref = registryName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the registry to return.
* To get a registry Name make a [RegistryService.List] request.
*
*
* string registry_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryName.
*/
public com.google.protobuf.ByteString
getRegistryNameBytes() {
java.lang.Object ref = registryName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the registry to return.
* To get a registry Name make a [RegistryService.List] request.
*
*
* string registry_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @param value The registryName to set.
* @return This builder for chaining.
*/
public Builder setRegistryName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryName_ = value;
onChanged();
return this;
}
/**
*
* Name of the registry to return.
* To get a registry Name make a [RegistryService.List] request.
*
*
* string registry_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryName() {
registryName_ = getDefaultInstance().getRegistryName();
onChanged();
return this;
}
/**
*
* Name of the registry to return.
* To get a registry Name make a [RegistryService.List] request.
*
*
* string registry_name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryName to set.
* @return This builder for chaining.
*/
public Builder setRegistryNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryName_ = 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.GetByNameRegistryRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.GetByNameRegistryRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.GetByNameRegistryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetByNameRegistryRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetByNameRegistryRequest(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.RegistryServiceOuterClass.GetByNameRegistryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListRegistriesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListRegistriesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListRegistriesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistriesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistriesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistriesRequest}
*/
public static final class ListRegistriesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListRegistriesRequest)
ListRegistriesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListRegistriesRequest.newBuilder() to construct.
private ListRegistriesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListRegistriesRequest() {
folderId_ = "";
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListRegistriesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListRegistriesRequest(
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();
folderId_ = s;
break;
}
case 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = 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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistriesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistriesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListRegistriesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistriesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistriesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
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(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_);
}
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
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.RegistryServiceOuterClass.ListRegistriesRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest) obj;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) 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) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest 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.RegistryServiceOuterClass.ListRegistriesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest 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.RegistryServiceOuterClass.ListRegistriesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest 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.RegistryServiceOuterClass.ListRegistriesRequest 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.RegistryServiceOuterClass.ListRegistriesRequest 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.RegistryServiceOuterClass.ListRegistriesRequest 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.RegistryServiceOuterClass.ListRegistriesRequest 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.RegistryServiceOuterClass.ListRegistriesRequest 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.RegistryServiceOuterClass.ListRegistriesRequest 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.RegistryServiceOuterClass.ListRegistriesRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistriesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListRegistriesRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistriesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistriesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest.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();
folderId_ = "";
pageSize_ = 0L;
pageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistriesRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest(this);
result.folderId_ = folderId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
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.RegistryServiceOuterClass.ListRegistriesRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest.getDefaultInstance()) return this;
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
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.RegistryServiceOuterClass.ListRegistriesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder to list registries in.
* To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
folderId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListRegistriesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListRegistriesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListRegistriesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistriesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistriesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistriesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistriesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistriesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = value;
onChanged();
return this;
}
@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.ListRegistriesRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListRegistriesRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListRegistriesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListRegistriesRequest(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.RegistryServiceOuterClass.ListRegistriesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListRegistriesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListRegistriesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
java.util.List
getRegistriesList();
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry getRegistries(int index);
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
int getRegistriesCount();
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryOrBuilder>
getRegistriesOrBuilderList();
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryOrBuilder getRegistriesOrBuilder(
int index);
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistriesRequest.page_size], use `next_page_token` as the value
* for the [ListRegistriesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistriesRequest.page_size], use `next_page_token` as the value
* for the [ListRegistriesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistriesResponse}
*/
public static final class ListRegistriesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListRegistriesResponse)
ListRegistriesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListRegistriesResponse.newBuilder() to construct.
private ListRegistriesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListRegistriesResponse() {
registries_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListRegistriesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListRegistriesResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
registries_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
registries_.add(
input.readMessage(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
registries_ = java.util.Collections.unmodifiableList(registries_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistriesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistriesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse.Builder.class);
}
public static final int REGISTRIES_FIELD_NUMBER = 1;
private java.util.List registries_;
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
@java.lang.Override
public java.util.List getRegistriesList() {
return registries_;
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryOrBuilder>
getRegistriesOrBuilderList() {
return registries_;
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
@java.lang.Override
public int getRegistriesCount() {
return registries_.size();
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry getRegistries(int index) {
return registries_.get(index);
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryOrBuilder getRegistriesOrBuilder(
int index) {
return registries_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistriesRequest.page_size], use `next_page_token` as the value
* for the [ListRegistriesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistriesRequest.page_size], use `next_page_token` as the value
* for the [ListRegistriesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < registries_.size(); i++) {
output.writeMessage(1, registries_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < registries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, registries_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse) obj;
if (!getRegistriesList()
.equals(other.getRegistriesList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRegistriesCount() > 0) {
hash = (37 * hash) + REGISTRIES_FIELD_NUMBER;
hash = (53 * hash) + getRegistriesList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse 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.RegistryServiceOuterClass.ListRegistriesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse 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.RegistryServiceOuterClass.ListRegistriesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse 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.RegistryServiceOuterClass.ListRegistriesResponse 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.RegistryServiceOuterClass.ListRegistriesResponse 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.RegistryServiceOuterClass.ListRegistriesResponse 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.RegistryServiceOuterClass.ListRegistriesResponse 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.RegistryServiceOuterClass.ListRegistriesResponse 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.RegistryServiceOuterClass.ListRegistriesResponse 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.RegistryServiceOuterClass.ListRegistriesResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistriesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListRegistriesResponse)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistriesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistriesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRegistriesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (registriesBuilder_ == null) {
registries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
registriesBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistriesResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse(this);
int from_bitField0_ = bitField0_;
if (registriesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
registries_ = java.util.Collections.unmodifiableList(registries_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.registries_ = registries_;
} else {
result.registries_ = registriesBuilder_.build();
}
result.nextPageToken_ = nextPageToken_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse.getDefaultInstance()) return this;
if (registriesBuilder_ == null) {
if (!other.registries_.isEmpty()) {
if (registries_.isEmpty()) {
registries_ = other.registries_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRegistriesIsMutable();
registries_.addAll(other.registries_);
}
onChanged();
}
} else {
if (!other.registries_.isEmpty()) {
if (registriesBuilder_.isEmpty()) {
registriesBuilder_.dispose();
registriesBuilder_ = null;
registries_ = other.registries_;
bitField0_ = (bitField0_ & ~0x00000001);
registriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRegistriesFieldBuilder() : null;
} else {
registriesBuilder_.addAllMessages(other.registries_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List registries_ =
java.util.Collections.emptyList();
private void ensureRegistriesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
registries_ = new java.util.ArrayList(registries_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Builder, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryOrBuilder> registriesBuilder_;
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public java.util.List getRegistriesList() {
if (registriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(registries_);
} else {
return registriesBuilder_.getMessageList();
}
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public int getRegistriesCount() {
if (registriesBuilder_ == null) {
return registries_.size();
} else {
return registriesBuilder_.getCount();
}
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry getRegistries(int index) {
if (registriesBuilder_ == null) {
return registries_.get(index);
} else {
return registriesBuilder_.getMessage(index);
}
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public Builder setRegistries(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry value) {
if (registriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegistriesIsMutable();
registries_.set(index, value);
onChanged();
} else {
registriesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public Builder setRegistries(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Builder builderForValue) {
if (registriesBuilder_ == null) {
ensureRegistriesIsMutable();
registries_.set(index, builderForValue.build());
onChanged();
} else {
registriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public Builder addRegistries(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry value) {
if (registriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegistriesIsMutable();
registries_.add(value);
onChanged();
} else {
registriesBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public Builder addRegistries(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry value) {
if (registriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegistriesIsMutable();
registries_.add(index, value);
onChanged();
} else {
registriesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public Builder addRegistries(
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Builder builderForValue) {
if (registriesBuilder_ == null) {
ensureRegistriesIsMutable();
registries_.add(builderForValue.build());
onChanged();
} else {
registriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public Builder addRegistries(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Builder builderForValue) {
if (registriesBuilder_ == null) {
ensureRegistriesIsMutable();
registries_.add(index, builderForValue.build());
onChanged();
} else {
registriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public Builder addAllRegistries(
java.lang.Iterable extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry> values) {
if (registriesBuilder_ == null) {
ensureRegistriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, registries_);
onChanged();
} else {
registriesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public Builder clearRegistries() {
if (registriesBuilder_ == null) {
registries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
registriesBuilder_.clear();
}
return this;
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public Builder removeRegistries(int index) {
if (registriesBuilder_ == null) {
ensureRegistriesIsMutable();
registries_.remove(index);
onChanged();
} else {
registriesBuilder_.remove(index);
}
return this;
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Builder getRegistriesBuilder(
int index) {
return getRegistriesFieldBuilder().getBuilder(index);
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryOrBuilder getRegistriesOrBuilder(
int index) {
if (registriesBuilder_ == null) {
return registries_.get(index); } else {
return registriesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryOrBuilder>
getRegistriesOrBuilderList() {
if (registriesBuilder_ != null) {
return registriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(registries_);
}
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Builder addRegistriesBuilder() {
return getRegistriesFieldBuilder().addBuilder(
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.getDefaultInstance());
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Builder addRegistriesBuilder(
int index) {
return getRegistriesFieldBuilder().addBuilder(
index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.getDefaultInstance());
}
/**
*
* List of registries.
*
*
* repeated .yandex.cloud.iot.devices.v1.Registry registries = 1;
*/
public java.util.List
getRegistriesBuilderList() {
return getRegistriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Builder, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryOrBuilder>
getRegistriesFieldBuilder() {
if (registriesBuilder_ == null) {
registriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.Registry.Builder, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryOrBuilder>(
registries_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
registries_ = null;
}
return registriesBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistriesRequest.page_size], use `next_page_token` as the value
* for the [ListRegistriesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistriesRequest.page_size], use `next_page_token` as the value
* for the [ListRegistriesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistriesRequest.page_size], use `next_page_token` as the value
* for the [ListRegistriesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
onChanged();
return this;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistriesRequest.page_size], use `next_page_token` as the value
* for the [ListRegistriesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistriesRequest.page_size], use `next_page_token` as the value
* for the [ListRegistriesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.ListRegistriesResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListRegistriesResponse)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistriesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListRegistriesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListRegistriesResponse(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.RegistryServiceOuterClass.ListRegistriesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateRegistryRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.CreateRegistryRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to create a registry in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder to create a registry in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the registry.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the registry.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
int getLabelsCount();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.util.Map
getLabelsMap();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
java.util.List
getCertificatesList();
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate getCertificates(int index);
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
int getCertificatesCount();
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.CertificateOrBuilder>
getCertificatesOrBuilderList();
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.CertificateOrBuilder getCertificatesOrBuilder(
int index);
/**
*
* Registry passwords.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 6;
* @return The password.
*/
java.lang.String getPassword();
/**
*
* Registry passwords.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 6;
* @return The bytes for password.
*/
com.google.protobuf.ByteString
getPasswordBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.CreateRegistryRequest}
*/
public static final class CreateRegistryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.CreateRegistryRequest)
CreateRegistryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateRegistryRequest.newBuilder() to construct.
private CreateRegistryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateRegistryRequest() {
folderId_ = "";
name_ = "";
description_ = "";
certificates_ = java.util.Collections.emptyList();
password_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateRegistryRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateRegistryRequest(
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();
folderId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
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 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
certificates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
certificates_.add(
input.readMessage(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.parser(), extensionRegistry));
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
password_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) != 0)) {
certificates_ = java.util.Collections.unmodifiableList(certificates_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Builder.class);
}
public interface CertificateOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate)
com.google.protobuf.MessageOrBuilder {
/**
*
* Public part of the registry certificate.
*
*
* string certificate_data = 1;
* @return The certificateData.
*/
java.lang.String getCertificateData();
/**
*
* Public part of the registry certificate.
*
*
* string certificate_data = 1;
* @return The bytes for certificateData.
*/
com.google.protobuf.ByteString
getCertificateDataBytes();
}
/**
*
* Specification of a registry certificate.
*
*
* Protobuf type {@code yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate}
*/
public static final class Certificate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate)
CertificateOrBuilder {
private static final long serialVersionUID = 0L;
// Use Certificate.newBuilder() to construct.
private Certificate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Certificate() {
certificateData_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Certificate();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Certificate(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
certificateData_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryRequest_Certificate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryRequest_Certificate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.Builder.class);
}
public static final int CERTIFICATE_DATA_FIELD_NUMBER = 1;
private volatile java.lang.Object certificateData_;
/**
*
* Public part of the registry certificate.
*
*
* string certificate_data = 1;
* @return The certificateData.
*/
@java.lang.Override
public java.lang.String getCertificateData() {
java.lang.Object ref = certificateData_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
certificateData_ = s;
return s;
}
}
/**
*
* Public part of the registry certificate.
*
*
* string certificate_data = 1;
* @return The bytes for certificateData.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCertificateDataBytes() {
java.lang.Object ref = certificateData_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
certificateData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateData_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, certificateData_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateData_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, certificateData_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate) obj;
if (!getCertificateData()
.equals(other.getCertificateData())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CERTIFICATE_DATA_FIELD_NUMBER;
hash = (53 * hash) + getCertificateData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Specification of a registry certificate.
*
*
* Protobuf type {@code yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.CertificateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryRequest_Certificate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryRequest_Certificate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
certificateData_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryRequest_Certificate_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate(this);
result.certificateData_ = certificateData_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.getDefaultInstance()) return this;
if (!other.getCertificateData().isEmpty()) {
certificateData_ = other.certificateData_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object certificateData_ = "";
/**
*
* Public part of the registry certificate.
*
*
* string certificate_data = 1;
* @return The certificateData.
*/
public java.lang.String getCertificateData() {
java.lang.Object ref = certificateData_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
certificateData_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Public part of the registry certificate.
*
*
* string certificate_data = 1;
* @return The bytes for certificateData.
*/
public com.google.protobuf.ByteString
getCertificateDataBytes() {
java.lang.Object ref = certificateData_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
certificateData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Public part of the registry certificate.
*
*
* string certificate_data = 1;
* @param value The certificateData to set.
* @return This builder for chaining.
*/
public Builder setCertificateData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
certificateData_ = value;
onChanged();
return this;
}
/**
*
* Public part of the registry certificate.
*
*
* string certificate_data = 1;
* @return This builder for chaining.
*/
public Builder clearCertificateData() {
certificateData_ = getDefaultInstance().getCertificateData();
onChanged();
return this;
}
/**
*
* Public part of the registry certificate.
*
*
* string certificate_data = 1;
* @param value The bytes for certificateData to set.
* @return This builder for chaining.
*/
public Builder setCertificateDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
certificateData_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Certificate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Certificate(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to create a registry in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 to create a registry in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
*
* Description of the registry.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* Description of the registry.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABELS_FIELD_NUMBER = 4;
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryRequest_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.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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 CERTIFICATES_FIELD_NUMBER = 5;
private java.util.List certificates_;
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
@java.lang.Override
public java.util.List getCertificatesList() {
return certificates_;
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.CertificateOrBuilder>
getCertificatesOrBuilderList() {
return certificates_;
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
@java.lang.Override
public int getCertificatesCount() {
return certificates_.size();
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate getCertificates(int index) {
return certificates_.get(index);
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.CertificateOrBuilder getCertificatesOrBuilder(
int index) {
return certificates_.get(index);
}
public static final int PASSWORD_FIELD_NUMBER = 6;
private volatile java.lang.Object password_;
/**
*
* Registry passwords.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 6;
* @return The password.
*/
@java.lang.Override
public java.lang.String getPassword() {
java.lang.Object ref = password_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
password_ = s;
return s;
}
}
/**
*
* Registry passwords.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 6;
* @return The bytes for password.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPasswordBytes() {
java.lang.Object ref = password_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
password_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
4);
for (int i = 0; i < certificates_.size(); i++) {
output.writeMessage(5, certificates_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, password_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
for (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(4, labels__);
}
for (int i = 0; i < certificates_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, certificates_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, password_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest) obj;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (!getCertificatesList()
.equals(other.getCertificatesList())) return false;
if (!getPassword()
.equals(other.getPassword())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().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();
}
if (getCertificatesCount() > 0) {
hash = (37 * hash) + CERTIFICATES_FIELD_NUMBER;
hash = (53 * hash) + getCertificatesList().hashCode();
}
hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
hash = (53 * hash) + getPassword().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest 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.RegistryServiceOuterClass.CreateRegistryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest 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.RegistryServiceOuterClass.CreateRegistryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest 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.RegistryServiceOuterClass.CreateRegistryRequest 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.RegistryServiceOuterClass.CreateRegistryRequest 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.RegistryServiceOuterClass.CreateRegistryRequest 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.RegistryServiceOuterClass.CreateRegistryRequest 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.RegistryServiceOuterClass.CreateRegistryRequest 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.RegistryServiceOuterClass.CreateRegistryRequest 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.RegistryServiceOuterClass.CreateRegistryRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.CreateRegistryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.CreateRegistryRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 4:
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCertificatesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
folderId_ = "";
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
if (certificatesBuilder_ == null) {
certificates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
certificatesBuilder_.clear();
}
password_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest(this);
int from_bitField0_ = bitField0_;
result.folderId_ = folderId_;
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
if (certificatesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
certificates_ = java.util.Collections.unmodifiableList(certificates_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.certificates_ = certificates_;
} else {
result.certificates_ = certificatesBuilder_.build();
}
result.password_ = password_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.getDefaultInstance()) return this;
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
if (certificatesBuilder_ == null) {
if (!other.certificates_.isEmpty()) {
if (certificates_.isEmpty()) {
certificates_ = other.certificates_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCertificatesIsMutable();
certificates_.addAll(other.certificates_);
}
onChanged();
}
} else {
if (!other.certificates_.isEmpty()) {
if (certificatesBuilder_.isEmpty()) {
certificatesBuilder_.dispose();
certificatesBuilder_ = null;
certificates_ = other.certificates_;
bitField0_ = (bitField0_ & ~0x00000002);
certificatesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCertificatesFieldBuilder() : null;
} else {
certificatesBuilder_.addAllMessages(other.certificates_);
}
}
}
if (!other.getPassword().isEmpty()) {
password_ = other.password_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to create a registry in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 to create a registry in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 to create a registry in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder to create a registry in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder to create a registry in.
* To get a folder ID, make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
folderId_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the registry.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the registry.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the registry.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the registry.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the registry.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private 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.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
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.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
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.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
private java.util.List certificates_ =
java.util.Collections.emptyList();
private void ensureCertificatesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
certificates_ = new java.util.ArrayList(certificates_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.Builder, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.CertificateOrBuilder> certificatesBuilder_;
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public java.util.List getCertificatesList() {
if (certificatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(certificates_);
} else {
return certificatesBuilder_.getMessageList();
}
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public int getCertificatesCount() {
if (certificatesBuilder_ == null) {
return certificates_.size();
} else {
return certificatesBuilder_.getCount();
}
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate getCertificates(int index) {
if (certificatesBuilder_ == null) {
return certificates_.get(index);
} else {
return certificatesBuilder_.getMessage(index);
}
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public Builder setCertificates(
int index, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate value) {
if (certificatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertificatesIsMutable();
certificates_.set(index, value);
onChanged();
} else {
certificatesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public Builder setCertificates(
int index, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.Builder builderForValue) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
certificates_.set(index, builderForValue.build());
onChanged();
} else {
certificatesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public Builder addCertificates(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate value) {
if (certificatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertificatesIsMutable();
certificates_.add(value);
onChanged();
} else {
certificatesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public Builder addCertificates(
int index, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate value) {
if (certificatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertificatesIsMutable();
certificates_.add(index, value);
onChanged();
} else {
certificatesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public Builder addCertificates(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.Builder builderForValue) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
certificates_.add(builderForValue.build());
onChanged();
} else {
certificatesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public Builder addCertificates(
int index, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.Builder builderForValue) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
certificates_.add(index, builderForValue.build());
onChanged();
} else {
certificatesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public Builder addAllCertificates(
java.lang.Iterable extends yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate> values) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, certificates_);
onChanged();
} else {
certificatesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public Builder clearCertificates() {
if (certificatesBuilder_ == null) {
certificates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
certificatesBuilder_.clear();
}
return this;
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public Builder removeCertificates(int index) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
certificates_.remove(index);
onChanged();
} else {
certificatesBuilder_.remove(index);
}
return this;
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.Builder getCertificatesBuilder(
int index) {
return getCertificatesFieldBuilder().getBuilder(index);
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.CertificateOrBuilder getCertificatesOrBuilder(
int index) {
if (certificatesBuilder_ == null) {
return certificates_.get(index); } else {
return certificatesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.CertificateOrBuilder>
getCertificatesOrBuilderList() {
if (certificatesBuilder_ != null) {
return certificatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(certificates_);
}
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.Builder addCertificatesBuilder() {
return getCertificatesFieldBuilder().addBuilder(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.getDefaultInstance());
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.Builder addCertificatesBuilder(
int index) {
return getCertificatesFieldBuilder().addBuilder(
index, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.getDefaultInstance());
}
/**
*
* Registry certificates.
*
*
* repeated .yandex.cloud.iot.devices.v1.CreateRegistryRequest.Certificate certificates = 5;
*/
public java.util.List
getCertificatesBuilderList() {
return getCertificatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.Builder, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.CertificateOrBuilder>
getCertificatesFieldBuilder() {
if (certificatesBuilder_ == null) {
certificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.Certificate.Builder, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest.CertificateOrBuilder>(
certificates_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
certificates_ = null;
}
return certificatesBuilder_;
}
private java.lang.Object password_ = "";
/**
*
* Registry passwords.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 6;
* @return The password.
*/
public java.lang.String getPassword() {
java.lang.Object ref = password_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
password_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Registry passwords.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 6;
* @return The bytes for password.
*/
public com.google.protobuf.ByteString
getPasswordBytes() {
java.lang.Object ref = password_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
password_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Registry passwords.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 6;
* @param value The password to set.
* @return This builder for chaining.
*/
public Builder setPassword(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
password_ = value;
onChanged();
return this;
}
/**
*
* Registry passwords.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 6;
* @return This builder for chaining.
*/
public Builder clearPassword() {
password_ = getDefaultInstance().getPassword();
onChanged();
return this;
}
/**
*
* Registry passwords.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 6;
* @param value The bytes for password to set.
* @return This builder for chaining.
*/
public Builder setPasswordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
password_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.CreateRegistryRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.CreateRegistryRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateRegistryRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateRegistryRequest(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.RegistryServiceOuterClass.CreateRegistryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateRegistryMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.CreateRegistryMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry that is being created.
*
*
* string registry_id = 1;
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry that is being created.
*
*
* string registry_id = 1;
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.CreateRegistryMetadata}
*/
public static final class CreateRegistryMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.CreateRegistryMetadata)
CreateRegistryMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateRegistryMetadata.newBuilder() to construct.
private CreateRegistryMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateRegistryMetadata() {
registryId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateRegistryMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateRegistryMetadata(
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;
}
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry that is being created.
*
*
* 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 is being created.
*
*
* 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;
}
}
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_);
}
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_);
}
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.RegistryServiceOuterClass.CreateRegistryMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata 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.RegistryServiceOuterClass.CreateRegistryMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata 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.RegistryServiceOuterClass.CreateRegistryMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata 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.RegistryServiceOuterClass.CreateRegistryMetadata 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.RegistryServiceOuterClass.CreateRegistryMetadata 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.RegistryServiceOuterClass.CreateRegistryMetadata 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.RegistryServiceOuterClass.CreateRegistryMetadata 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.RegistryServiceOuterClass.CreateRegistryMetadata 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.RegistryServiceOuterClass.CreateRegistryMetadata 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.RegistryServiceOuterClass.CreateRegistryMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.CreateRegistryMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.CreateRegistryMetadata)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_CreateRegistryMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata(this);
result.registryId_ = registryId_;
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.RegistryServiceOuterClass.CreateRegistryMetadata) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
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.RegistryServiceOuterClass.CreateRegistryMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry that is being created.
*
*
* 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 is being created.
*
*
* 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 is being created.
*
*
* 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 is being created.
*
*
* string registry_id = 1;
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry that is being created.
*
*
* 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;
}
@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.CreateRegistryMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.CreateRegistryMetadata)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.CreateRegistryMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateRegistryMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateRegistryMetadata(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.RegistryServiceOuterClass.CreateRegistryMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateRegistryRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.UpdateRegistryRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry to update.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry to update.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return Whether the updateMask field is set.
*/
boolean hasUpdateMask();
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return The updateMask.
*/
com.google.protobuf.FieldMask getUpdateMask();
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the registry.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the registry.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
int getLabelsCount();
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.util.Map
getLabelsMap();
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.UpdateRegistryRequest}
*/
public static final class UpdateRegistryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.UpdateRegistryRequest)
UpdateRegistryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateRegistryRequest.newBuilder() to construct.
private UpdateRegistryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateRegistryRequest() {
registryId_ = "";
name_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateRegistryRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateRegistryRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
registryId_ = s;
break;
}
case 18: {
com.google.protobuf.FieldMask.Builder subBuilder = null;
if (updateMask_ != null) {
subBuilder = updateMask_.toBuilder();
}
updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateMask_);
updateMask_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
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;
}
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateRegistryRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateRegistryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry to update.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of the registry to update.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UPDATE_MASK_FIELD_NUMBER = 2;
private com.google.protobuf.FieldMask updateMask_;
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return Whether the updateMask field is set.
*/
@java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return The updateMask.
*/
@java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 4;
private volatile java.lang.Object description_;
/**
*
* Description of the registry.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* Description of the registry.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABELS_FIELD_NUMBER = 5;
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateRegistryRequest_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.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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);
}
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 (updateMask_ != null) {
output.writeMessage(2, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
5);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registryId_);
}
if (updateMask_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
}
for (java.util.Map.Entry entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, labels__);
}
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.RegistryServiceOuterClass.UpdateRegistryRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) return false;
if (hasUpdateMask() != other.hasUpdateMask()) return false;
if (hasUpdateMask()) {
if (!getUpdateMask()
.equals(other.getUpdateMask())) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) 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();
if (hasUpdateMask()) {
hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
hash = (53 * hash) + getUpdateMask().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest 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.RegistryServiceOuterClass.UpdateRegistryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest 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.RegistryServiceOuterClass.UpdateRegistryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest 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.RegistryServiceOuterClass.UpdateRegistryRequest 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.RegistryServiceOuterClass.UpdateRegistryRequest 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.RegistryServiceOuterClass.UpdateRegistryRequest 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.RegistryServiceOuterClass.UpdateRegistryRequest 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.RegistryServiceOuterClass.UpdateRegistryRequest 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.RegistryServiceOuterClass.UpdateRegistryRequest 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.RegistryServiceOuterClass.UpdateRegistryRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.UpdateRegistryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.UpdateRegistryRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateRegistryRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 5:
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateRegistryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest.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_ = "";
if (updateMaskBuilder_ == null) {
updateMask_ = null;
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateRegistryRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest(this);
int from_bitField0_ = bitField0_;
result.registryId_ = registryId_;
if (updateMaskBuilder_ == null) {
result.updateMask_ = updateMask_;
} else {
result.updateMask_ = updateMaskBuilder_.build();
}
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
onChanged();
}
if (other.hasUpdateMask()) {
mergeUpdateMask(other.getUpdateMask());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
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.RegistryServiceOuterClass.UpdateRegistryRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry to update.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the registry to update.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the registry to update.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of the registry to update.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry to update.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
private com.google.protobuf.FieldMask updateMask_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
return updateMaskBuilder_ != null || updateMask_ != null;
}
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return The updateMask.
*/
public com.google.protobuf.FieldMask getUpdateMask() {
if (updateMaskBuilder_ == null) {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
} else {
return updateMaskBuilder_.getMessage();
}
}
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateMask_ = value;
onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
return this;
}
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder setUpdateMask(
com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (updateMask_ != null) {
updateMask_ =
com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
} else {
updateMask_ = value;
}
onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder clearUpdateMask() {
if (updateMaskBuilder_ == null) {
updateMask_ = null;
onChanged();
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
return this;
}
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
if (updateMaskBuilder_ != null) {
return updateMaskBuilder_.getMessageOrBuilder();
} else {
return updateMask_ == null ?
com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
}
/**
*
* Field mask that specifies which fields of the registry are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>
getUpdateMaskFieldBuilder() {
if (updateMaskBuilder_ == null) {
updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
getUpdateMask(),
getParentForChildren(),
isClean());
updateMask_ = null;
}
return updateMaskBuilder_;
}
private java.lang.Object name_ = "";
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the registry. The name must be unique within the folder.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the registry.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the registry.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the registry.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the registry.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the registry.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> 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.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@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.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
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.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
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.
* Existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.UpdateRegistryRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.UpdateRegistryRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateRegistryRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateRegistryRequest(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.RegistryServiceOuterClass.UpdateRegistryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateRegistryMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.UpdateRegistryMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry that is being updated.
*
*
* string registry_id = 1;
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry that is being updated.
*
*
* string registry_id = 1;
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.UpdateRegistryMetadata}
*/
public static final class UpdateRegistryMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.UpdateRegistryMetadata)
UpdateRegistryMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateRegistryMetadata.newBuilder() to construct.
private UpdateRegistryMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateRegistryMetadata() {
registryId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateRegistryMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateRegistryMetadata(
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;
}
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateRegistryMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateRegistryMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry that is being updated.
*
*
* 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 is being updated.
*
*
* 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;
}
}
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_);
}
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_);
}
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.RegistryServiceOuterClass.UpdateRegistryMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata 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.RegistryServiceOuterClass.UpdateRegistryMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata 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.RegistryServiceOuterClass.UpdateRegistryMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata 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.RegistryServiceOuterClass.UpdateRegistryMetadata 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.RegistryServiceOuterClass.UpdateRegistryMetadata 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.RegistryServiceOuterClass.UpdateRegistryMetadata 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.RegistryServiceOuterClass.UpdateRegistryMetadata 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.RegistryServiceOuterClass.UpdateRegistryMetadata 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.RegistryServiceOuterClass.UpdateRegistryMetadata 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.RegistryServiceOuterClass.UpdateRegistryMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.UpdateRegistryMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.UpdateRegistryMetadata)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateRegistryMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateRegistryMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_UpdateRegistryMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata(this);
result.registryId_ = registryId_;
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.RegistryServiceOuterClass.UpdateRegistryMetadata) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
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.RegistryServiceOuterClass.UpdateRegistryMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry that is being updated.
*
*
* 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 is being updated.
*
*
* 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 is being updated.
*
*
* 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 is being updated.
*
*
* string registry_id = 1;
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry that is being updated.
*
*
* 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;
}
@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.UpdateRegistryMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.UpdateRegistryMetadata)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.UpdateRegistryMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateRegistryMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateRegistryMetadata(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.RegistryServiceOuterClass.UpdateRegistryMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteRegistryRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeleteRegistryRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry to delete.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry to delete.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteRegistryRequest}
*/
public static final class DeleteRegistryRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeleteRegistryRequest)
DeleteRegistryRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteRegistryRequest.newBuilder() to construct.
private DeleteRegistryRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteRegistryRequest() {
registryId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteRegistryRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteRegistryRequest(
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;
}
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry to delete.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of the registry to delete.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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_);
}
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_);
}
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.RegistryServiceOuterClass.DeleteRegistryRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest 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.RegistryServiceOuterClass.DeleteRegistryRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest 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.RegistryServiceOuterClass.DeleteRegistryRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest 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.RegistryServiceOuterClass.DeleteRegistryRequest 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.RegistryServiceOuterClass.DeleteRegistryRequest 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.RegistryServiceOuterClass.DeleteRegistryRequest 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.RegistryServiceOuterClass.DeleteRegistryRequest 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.RegistryServiceOuterClass.DeleteRegistryRequest 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.RegistryServiceOuterClass.DeleteRegistryRequest 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.RegistryServiceOuterClass.DeleteRegistryRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteRegistryRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeleteRegistryRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest(this);
result.registryId_ = registryId_;
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.RegistryServiceOuterClass.DeleteRegistryRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
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.RegistryServiceOuterClass.DeleteRegistryRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry to delete.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the registry to delete.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the registry to delete.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of the registry to delete.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry to delete.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
@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.DeleteRegistryRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeleteRegistryRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteRegistryRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteRegistryRequest(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.RegistryServiceOuterClass.DeleteRegistryRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteRegistryMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeleteRegistryMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry that is being deleted.
*
*
* string registry_id = 1;
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry that is being deleted.
*
*
* string registry_id = 1;
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteRegistryMetadata}
*/
public static final class DeleteRegistryMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeleteRegistryMetadata)
DeleteRegistryMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteRegistryMetadata.newBuilder() to construct.
private DeleteRegistryMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteRegistryMetadata() {
registryId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteRegistryMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteRegistryMetadata(
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;
}
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry that is being deleted.
*
*
* 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 is being deleted.
*
*
* 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;
}
}
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_);
}
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_);
}
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.RegistryServiceOuterClass.DeleteRegistryMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata 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.RegistryServiceOuterClass.DeleteRegistryMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata 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.RegistryServiceOuterClass.DeleteRegistryMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata 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.RegistryServiceOuterClass.DeleteRegistryMetadata 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.RegistryServiceOuterClass.DeleteRegistryMetadata 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.RegistryServiceOuterClass.DeleteRegistryMetadata 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.RegistryServiceOuterClass.DeleteRegistryMetadata 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.RegistryServiceOuterClass.DeleteRegistryMetadata 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.RegistryServiceOuterClass.DeleteRegistryMetadata 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.RegistryServiceOuterClass.DeleteRegistryMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteRegistryMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeleteRegistryMetadata)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata(this);
result.registryId_ = registryId_;
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.RegistryServiceOuterClass.DeleteRegistryMetadata) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
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.RegistryServiceOuterClass.DeleteRegistryMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry that is being deleted.
*
*
* 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 is being deleted.
*
*
* 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 is being deleted.
*
*
* 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 is being deleted.
*
*
* string registry_id = 1;
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry that is being deleted.
*
*
* 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;
}
@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.DeleteRegistryMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeleteRegistryMetadata)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteRegistryMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteRegistryMetadata(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.RegistryServiceOuterClass.DeleteRegistryMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListRegistryCertificatesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListRegistryCertificatesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry to list certificates for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry to list certificates for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistryCertificatesRequest}
*/
public static final class ListRegistryCertificatesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListRegistryCertificatesRequest)
ListRegistryCertificatesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListRegistryCertificatesRequest.newBuilder() to construct.
private ListRegistryCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListRegistryCertificatesRequest() {
registryId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListRegistryCertificatesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListRegistryCertificatesRequest(
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;
}
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryCertificatesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryCertificatesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry to list certificates for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of the registry to list certificates for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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_);
}
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_);
}
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.RegistryServiceOuterClass.ListRegistryCertificatesRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest 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.RegistryServiceOuterClass.ListRegistryCertificatesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest 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.RegistryServiceOuterClass.ListRegistryCertificatesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest 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.RegistryServiceOuterClass.ListRegistryCertificatesRequest 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.RegistryServiceOuterClass.ListRegistryCertificatesRequest 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.RegistryServiceOuterClass.ListRegistryCertificatesRequest 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.RegistryServiceOuterClass.ListRegistryCertificatesRequest 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.RegistryServiceOuterClass.ListRegistryCertificatesRequest 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.RegistryServiceOuterClass.ListRegistryCertificatesRequest 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.RegistryServiceOuterClass.ListRegistryCertificatesRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistryCertificatesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListRegistryCertificatesRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryCertificatesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryCertificatesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryCertificatesRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest(this);
result.registryId_ = registryId_;
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.RegistryServiceOuterClass.ListRegistryCertificatesRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
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.RegistryServiceOuterClass.ListRegistryCertificatesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry to list certificates for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the registry to list certificates for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the registry to list certificates for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of the registry to list certificates for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry to list certificates for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
@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.ListRegistryCertificatesRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListRegistryCertificatesRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListRegistryCertificatesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListRegistryCertificatesRequest(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.RegistryServiceOuterClass.ListRegistryCertificatesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListRegistryCertificatesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListRegistryCertificatesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
java.util.List
getCertificatesList();
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate getCertificates(int index);
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
int getCertificatesCount();
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificateOrBuilder>
getCertificatesOrBuilderList();
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificateOrBuilder getCertificatesOrBuilder(
int index);
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistryCertificatesResponse}
*/
public static final class ListRegistryCertificatesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListRegistryCertificatesResponse)
ListRegistryCertificatesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListRegistryCertificatesResponse.newBuilder() to construct.
private ListRegistryCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListRegistryCertificatesResponse() {
certificates_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListRegistryCertificatesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListRegistryCertificatesResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
certificates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
certificates_.add(
input.readMessage(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
certificates_ = java.util.Collections.unmodifiableList(certificates_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryCertificatesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryCertificatesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse.Builder.class);
}
public static final int CERTIFICATES_FIELD_NUMBER = 1;
private java.util.List certificates_;
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
@java.lang.Override
public java.util.List getCertificatesList() {
return certificates_;
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificateOrBuilder>
getCertificatesOrBuilderList() {
return certificates_;
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
@java.lang.Override
public int getCertificatesCount() {
return certificates_.size();
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate getCertificates(int index) {
return certificates_.get(index);
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificateOrBuilder getCertificatesOrBuilder(
int index) {
return certificates_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < certificates_.size(); i++) {
output.writeMessage(1, certificates_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < certificates_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, certificates_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse) obj;
if (!getCertificatesList()
.equals(other.getCertificatesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getCertificatesCount() > 0) {
hash = (37 * hash) + CERTIFICATES_FIELD_NUMBER;
hash = (53 * hash) + getCertificatesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse 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.RegistryServiceOuterClass.ListRegistryCertificatesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse 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.RegistryServiceOuterClass.ListRegistryCertificatesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse 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.RegistryServiceOuterClass.ListRegistryCertificatesResponse 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.RegistryServiceOuterClass.ListRegistryCertificatesResponse 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.RegistryServiceOuterClass.ListRegistryCertificatesResponse 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.RegistryServiceOuterClass.ListRegistryCertificatesResponse 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.RegistryServiceOuterClass.ListRegistryCertificatesResponse 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.RegistryServiceOuterClass.ListRegistryCertificatesResponse 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.RegistryServiceOuterClass.ListRegistryCertificatesResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistryCertificatesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListRegistryCertificatesResponse)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryCertificatesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryCertificatesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCertificatesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (certificatesBuilder_ == null) {
certificates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
certificatesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryCertificatesResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse(this);
int from_bitField0_ = bitField0_;
if (certificatesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
certificates_ = java.util.Collections.unmodifiableList(certificates_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.certificates_ = certificates_;
} else {
result.certificates_ = certificatesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse.getDefaultInstance()) return this;
if (certificatesBuilder_ == null) {
if (!other.certificates_.isEmpty()) {
if (certificates_.isEmpty()) {
certificates_ = other.certificates_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCertificatesIsMutable();
certificates_.addAll(other.certificates_);
}
onChanged();
}
} else {
if (!other.certificates_.isEmpty()) {
if (certificatesBuilder_.isEmpty()) {
certificatesBuilder_.dispose();
certificatesBuilder_ = null;
certificates_ = other.certificates_;
bitField0_ = (bitField0_ & ~0x00000001);
certificatesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCertificatesFieldBuilder() : null;
} else {
certificatesBuilder_.addAllMessages(other.certificates_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List certificates_ =
java.util.Collections.emptyList();
private void ensureCertificatesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
certificates_ = new java.util.ArrayList(certificates_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.Builder, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificateOrBuilder> certificatesBuilder_;
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public java.util.List getCertificatesList() {
if (certificatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(certificates_);
} else {
return certificatesBuilder_.getMessageList();
}
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public int getCertificatesCount() {
if (certificatesBuilder_ == null) {
return certificates_.size();
} else {
return certificatesBuilder_.getCount();
}
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate getCertificates(int index) {
if (certificatesBuilder_ == null) {
return certificates_.get(index);
} else {
return certificatesBuilder_.getMessage(index);
}
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public Builder setCertificates(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate value) {
if (certificatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertificatesIsMutable();
certificates_.set(index, value);
onChanged();
} else {
certificatesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public Builder setCertificates(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.Builder builderForValue) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
certificates_.set(index, builderForValue.build());
onChanged();
} else {
certificatesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public Builder addCertificates(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate value) {
if (certificatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertificatesIsMutable();
certificates_.add(value);
onChanged();
} else {
certificatesBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public Builder addCertificates(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate value) {
if (certificatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertificatesIsMutable();
certificates_.add(index, value);
onChanged();
} else {
certificatesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public Builder addCertificates(
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.Builder builderForValue) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
certificates_.add(builderForValue.build());
onChanged();
} else {
certificatesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public Builder addCertificates(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.Builder builderForValue) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
certificates_.add(index, builderForValue.build());
onChanged();
} else {
certificatesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public Builder addAllCertificates(
java.lang.Iterable extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate> values) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, certificates_);
onChanged();
} else {
certificatesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public Builder clearCertificates() {
if (certificatesBuilder_ == null) {
certificates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
certificatesBuilder_.clear();
}
return this;
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public Builder removeCertificates(int index) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
certificates_.remove(index);
onChanged();
} else {
certificatesBuilder_.remove(index);
}
return this;
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.Builder getCertificatesBuilder(
int index) {
return getCertificatesFieldBuilder().getBuilder(index);
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificateOrBuilder getCertificatesOrBuilder(
int index) {
if (certificatesBuilder_ == null) {
return certificates_.get(index); } else {
return certificatesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificateOrBuilder>
getCertificatesOrBuilderList() {
if (certificatesBuilder_ != null) {
return certificatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(certificates_);
}
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.Builder addCertificatesBuilder() {
return getCertificatesFieldBuilder().addBuilder(
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.getDefaultInstance());
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.Builder addCertificatesBuilder(
int index) {
return getCertificatesFieldBuilder().addBuilder(
index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.getDefaultInstance());
}
/**
*
* List of certificates for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryCertificate certificates = 1;
*/
public java.util.List
getCertificatesBuilderList() {
return getCertificatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.Builder, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificateOrBuilder>
getCertificatesFieldBuilder() {
if (certificatesBuilder_ == null) {
certificatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificate.Builder, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryCertificateOrBuilder>(
certificates_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
certificates_ = null;
}
return certificatesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.ListRegistryCertificatesResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListRegistryCertificatesResponse)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryCertificatesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListRegistryCertificatesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListRegistryCertificatesResponse(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.RegistryServiceOuterClass.ListRegistryCertificatesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddRegistryCertificateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.AddRegistryCertificateRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry for which the certificate is being added.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry for which the certificate is being added.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* Public part of the certificate that is being added.
*
*
* string certificate_data = 3;
* @return The certificateData.
*/
java.lang.String getCertificateData();
/**
*
* Public part of the certificate that is being added.
*
*
* string certificate_data = 3;
* @return The bytes for certificateData.
*/
com.google.protobuf.ByteString
getCertificateDataBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.AddRegistryCertificateRequest}
*/
public static final class AddRegistryCertificateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.AddRegistryCertificateRequest)
AddRegistryCertificateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddRegistryCertificateRequest.newBuilder() to construct.
private AddRegistryCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddRegistryCertificateRequest() {
registryId_ = "";
certificateData_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddRegistryCertificateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddRegistryCertificateRequest(
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 26: {
java.lang.String s = input.readStringRequireUtf8();
certificateData_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryCertificateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryCertificateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry for which the certificate is being added.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of the registry for which the certificate is being added.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CERTIFICATE_DATA_FIELD_NUMBER = 3;
private volatile java.lang.Object certificateData_;
/**
*
* Public part of the certificate that is being added.
*
*
* 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 that is being added.
*
*
* string certificate_data = 3;
* @return The bytes for certificateData.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCertificateDataBytes() {
java.lang.Object ref = certificateData_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
certificateData_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateData_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, certificateData_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certificateData_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, certificateData_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) return false;
if (!getCertificateData()
.equals(other.getCertificateData())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REGISTRY_ID_FIELD_NUMBER;
hash = (53 * hash) + getRegistryId().hashCode();
hash = (37 * hash) + CERTIFICATE_DATA_FIELD_NUMBER;
hash = (53 * hash) + getCertificateData().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest 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.RegistryServiceOuterClass.AddRegistryCertificateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest 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.RegistryServiceOuterClass.AddRegistryCertificateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest 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.RegistryServiceOuterClass.AddRegistryCertificateRequest 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.RegistryServiceOuterClass.AddRegistryCertificateRequest 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.RegistryServiceOuterClass.AddRegistryCertificateRequest 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.RegistryServiceOuterClass.AddRegistryCertificateRequest 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.RegistryServiceOuterClass.AddRegistryCertificateRequest 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.RegistryServiceOuterClass.AddRegistryCertificateRequest 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.RegistryServiceOuterClass.AddRegistryCertificateRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.AddRegistryCertificateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.AddRegistryCertificateRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryCertificateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryCertificateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest.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_ = "";
certificateData_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryCertificateRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest(this);
result.registryId_ = registryId_;
result.certificateData_ = certificateData_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
onChanged();
}
if (!other.getCertificateData().isEmpty()) {
certificateData_ = other.certificateData_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry for which the certificate is being added.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the registry for which the certificate is being added.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the registry for which the certificate is being added.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of the registry for which the certificate is being added.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry for which the certificate is being added.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
private java.lang.Object certificateData_ = "";
/**
*
* Public part of the certificate that is being added.
*
*
* 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 that is being added.
*
*
* 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 that is being added.
*
*
* 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 that is being added.
*
*
* string certificate_data = 3;
* @return This builder for chaining.
*/
public Builder clearCertificateData() {
certificateData_ = getDefaultInstance().getCertificateData();
onChanged();
return this;
}
/**
*
* Public part of the certificate that is being added.
*
*
* string certificate_data = 3;
* @param value The bytes for certificateData to set.
* @return This builder for chaining.
*/
public Builder setCertificateDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
certificateData_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.AddRegistryCertificateRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.AddRegistryCertificateRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddRegistryCertificateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddRegistryCertificateRequest(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.RegistryServiceOuterClass.AddRegistryCertificateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddRegistryCertificateMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.AddRegistryCertificateMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry certificate that is being added.
*
*
* string registry_id = 1;
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry certificate that is being added.
*
*
* string registry_id = 1;
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* Fingerprint of the certificate that is being added.
*
*
* string fingerprint = 2;
* @return The fingerprint.
*/
java.lang.String getFingerprint();
/**
*
* Fingerprint of the certificate that is being added.
*
*
* string fingerprint = 2;
* @return The bytes for fingerprint.
*/
com.google.protobuf.ByteString
getFingerprintBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.AddRegistryCertificateMetadata}
*/
public static final class AddRegistryCertificateMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.AddRegistryCertificateMetadata)
AddRegistryCertificateMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddRegistryCertificateMetadata.newBuilder() to construct.
private AddRegistryCertificateMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddRegistryCertificateMetadata() {
registryId_ = "";
fingerprint_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddRegistryCertificateMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddRegistryCertificateMetadata(
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;
}
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryCertificateMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryCertificateMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry certificate that is being added.
*
*
* 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 certificate that is being added.
*
*
* 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_;
/**
*
* Fingerprint of the certificate that is being added.
*
*
* string fingerprint = 2;
* @return The fingerprint.
*/
@java.lang.Override
public java.lang.String getFingerprint() {
java.lang.Object ref = fingerprint_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fingerprint_ = s;
return s;
}
}
/**
*
* Fingerprint of the certificate that is being added.
*
*
* string fingerprint = 2;
* @return The bytes for fingerprint.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFingerprintBytes() {
java.lang.Object ref = fingerprint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fingerprint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fingerprint_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fingerprint_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fingerprint_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fingerprint_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) return false;
if (!getFingerprint()
.equals(other.getFingerprint())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REGISTRY_ID_FIELD_NUMBER;
hash = (53 * hash) + getRegistryId().hashCode();
hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER;
hash = (53 * hash) + getFingerprint().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata 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.RegistryServiceOuterClass.AddRegistryCertificateMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata 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.RegistryServiceOuterClass.AddRegistryCertificateMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata 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.RegistryServiceOuterClass.AddRegistryCertificateMetadata 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.RegistryServiceOuterClass.AddRegistryCertificateMetadata 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.RegistryServiceOuterClass.AddRegistryCertificateMetadata 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.RegistryServiceOuterClass.AddRegistryCertificateMetadata 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.RegistryServiceOuterClass.AddRegistryCertificateMetadata 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.RegistryServiceOuterClass.AddRegistryCertificateMetadata 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.RegistryServiceOuterClass.AddRegistryCertificateMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.AddRegistryCertificateMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.AddRegistryCertificateMetadata)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryCertificateMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryCertificateMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryCertificateMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata(this);
result.registryId_ = registryId_;
result.fingerprint_ = fingerprint_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
onChanged();
}
if (!other.getFingerprint().isEmpty()) {
fingerprint_ = other.fingerprint_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry certificate that is being added.
*
*
* 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 certificate that is being added.
*
*
* 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 certificate that is being added.
*
*
* 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 certificate that is being added.
*
*
* string registry_id = 1;
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry certificate that is being added.
*
*
* 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_ = "";
/**
*
* Fingerprint of the certificate that is being added.
*
*
* string fingerprint = 2;
* @return The fingerprint.
*/
public java.lang.String getFingerprint() {
java.lang.Object ref = fingerprint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fingerprint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Fingerprint of the certificate that is being added.
*
*
* string fingerprint = 2;
* @return The bytes for fingerprint.
*/
public com.google.protobuf.ByteString
getFingerprintBytes() {
java.lang.Object ref = fingerprint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fingerprint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Fingerprint of the certificate that is being added.
*
*
* string fingerprint = 2;
* @param value The fingerprint to set.
* @return This builder for chaining.
*/
public Builder setFingerprint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fingerprint_ = value;
onChanged();
return this;
}
/**
*
* Fingerprint of the certificate that is being added.
*
*
* string fingerprint = 2;
* @return This builder for chaining.
*/
public Builder clearFingerprint() {
fingerprint_ = getDefaultInstance().getFingerprint();
onChanged();
return this;
}
/**
*
* Fingerprint of the certificate that is being added.
*
*
* string fingerprint = 2;
* @param value The bytes for fingerprint to set.
* @return This builder for chaining.
*/
public Builder setFingerprintBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fingerprint_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.AddRegistryCertificateMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.AddRegistryCertificateMetadata)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryCertificateMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddRegistryCertificateMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddRegistryCertificateMetadata(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.RegistryServiceOuterClass.AddRegistryCertificateMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteRegistryCertificateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeleteRegistryCertificateRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry to delete a certificate for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry to delete a certificate for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* Fingerprint of the certificate that is being deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The fingerprint.
*/
java.lang.String getFingerprint();
/**
*
* Fingerprint of the certificate that is being deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for fingerprint.
*/
com.google.protobuf.ByteString
getFingerprintBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteRegistryCertificateRequest}
*/
public static final class DeleteRegistryCertificateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeleteRegistryCertificateRequest)
DeleteRegistryCertificateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteRegistryCertificateRequest.newBuilder() to construct.
private DeleteRegistryCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteRegistryCertificateRequest() {
registryId_ = "";
fingerprint_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteRegistryCertificateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteRegistryCertificateRequest(
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;
}
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryCertificateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryCertificateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry to delete a certificate for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of the registry to delete a certificate for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FINGERPRINT_FIELD_NUMBER = 2;
private volatile java.lang.Object fingerprint_;
/**
*
* Fingerprint of the certificate that is being deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The fingerprint.
*/
@java.lang.Override
public java.lang.String getFingerprint() {
java.lang.Object ref = fingerprint_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fingerprint_ = s;
return s;
}
}
/**
*
* Fingerprint of the certificate that is being deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for fingerprint.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFingerprintBytes() {
java.lang.Object ref = fingerprint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fingerprint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fingerprint_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fingerprint_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fingerprint_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fingerprint_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) return false;
if (!getFingerprint()
.equals(other.getFingerprint())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REGISTRY_ID_FIELD_NUMBER;
hash = (53 * hash) + getRegistryId().hashCode();
hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER;
hash = (53 * hash) + getFingerprint().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest 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.RegistryServiceOuterClass.DeleteRegistryCertificateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest 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.RegistryServiceOuterClass.DeleteRegistryCertificateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest 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.RegistryServiceOuterClass.DeleteRegistryCertificateRequest 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.RegistryServiceOuterClass.DeleteRegistryCertificateRequest 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.RegistryServiceOuterClass.DeleteRegistryCertificateRequest 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.RegistryServiceOuterClass.DeleteRegistryCertificateRequest 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.RegistryServiceOuterClass.DeleteRegistryCertificateRequest 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.RegistryServiceOuterClass.DeleteRegistryCertificateRequest 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.RegistryServiceOuterClass.DeleteRegistryCertificateRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteRegistryCertificateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeleteRegistryCertificateRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryCertificateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryCertificateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryCertificateRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest(this);
result.registryId_ = registryId_;
result.fingerprint_ = fingerprint_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
onChanged();
}
if (!other.getFingerprint().isEmpty()) {
fingerprint_ = other.fingerprint_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry to delete a certificate for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the registry to delete a certificate for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the registry to delete a certificate for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of the registry to delete a certificate for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry to delete a certificate for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
private java.lang.Object fingerprint_ = "";
/**
*
* Fingerprint of the certificate that is being deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The fingerprint.
*/
public java.lang.String getFingerprint() {
java.lang.Object ref = fingerprint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fingerprint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Fingerprint of the certificate that is being deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for fingerprint.
*/
public com.google.protobuf.ByteString
getFingerprintBytes() {
java.lang.Object ref = fingerprint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fingerprint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Fingerprint of the certificate that is being deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The fingerprint to set.
* @return This builder for chaining.
*/
public Builder setFingerprint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fingerprint_ = value;
onChanged();
return this;
}
/**
*
* Fingerprint of the certificate that is being deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearFingerprint() {
fingerprint_ = getDefaultInstance().getFingerprint();
onChanged();
return this;
}
/**
*
* Fingerprint of the certificate that is being deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for fingerprint to set.
* @return This builder for chaining.
*/
public Builder setFingerprintBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fingerprint_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.DeleteRegistryCertificateRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeleteRegistryCertificateRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteRegistryCertificateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteRegistryCertificateRequest(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.RegistryServiceOuterClass.DeleteRegistryCertificateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteRegistryCertificateMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeleteRegistryCertificateMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of a registry for which the certificate is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of a registry for which the certificate is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* Fingerprint of the certificate to deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The fingerprint.
*/
java.lang.String getFingerprint();
/**
*
* Fingerprint of the certificate to deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for fingerprint.
*/
com.google.protobuf.ByteString
getFingerprintBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteRegistryCertificateMetadata}
*/
public static final class DeleteRegistryCertificateMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeleteRegistryCertificateMetadata)
DeleteRegistryCertificateMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteRegistryCertificateMetadata.newBuilder() to construct.
private DeleteRegistryCertificateMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteRegistryCertificateMetadata() {
registryId_ = "";
fingerprint_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteRegistryCertificateMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteRegistryCertificateMetadata(
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;
}
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryCertificateMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryCertificateMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of a registry for which the certificate is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of a registry for which the certificate is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FINGERPRINT_FIELD_NUMBER = 2;
private volatile java.lang.Object fingerprint_;
/**
*
* Fingerprint of the certificate to deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The fingerprint.
*/
@java.lang.Override
public java.lang.String getFingerprint() {
java.lang.Object ref = fingerprint_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fingerprint_ = s;
return s;
}
}
/**
*
* Fingerprint of the certificate to deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for fingerprint.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFingerprintBytes() {
java.lang.Object ref = fingerprint_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fingerprint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fingerprint_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fingerprint_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fingerprint_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fingerprint_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) return false;
if (!getFingerprint()
.equals(other.getFingerprint())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REGISTRY_ID_FIELD_NUMBER;
hash = (53 * hash) + getRegistryId().hashCode();
hash = (37 * hash) + FINGERPRINT_FIELD_NUMBER;
hash = (53 * hash) + getFingerprint().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata 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.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata 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.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata 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.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata 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.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata 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.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata 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.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata 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.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata 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.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata 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.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteRegistryCertificateMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeleteRegistryCertificateMetadata)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryCertificateMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryCertificateMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryCertificateMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata(this);
result.registryId_ = registryId_;
result.fingerprint_ = fingerprint_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
onChanged();
}
if (!other.getFingerprint().isEmpty()) {
fingerprint_ = other.fingerprint_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of a registry for which the certificate is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of a registry for which the certificate is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of a registry for which the certificate is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of a registry for which the certificate is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of a registry for which the certificate is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
private java.lang.Object fingerprint_ = "";
/**
*
* Fingerprint of the certificate to deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The fingerprint.
*/
public java.lang.String getFingerprint() {
java.lang.Object ref = fingerprint_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fingerprint_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Fingerprint of the certificate to deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for fingerprint.
*/
public com.google.protobuf.ByteString
getFingerprintBytes() {
java.lang.Object ref = fingerprint_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fingerprint_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Fingerprint of the certificate to deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The fingerprint to set.
* @return This builder for chaining.
*/
public Builder setFingerprint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
fingerprint_ = value;
onChanged();
return this;
}
/**
*
* Fingerprint of the certificate to deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearFingerprint() {
fingerprint_ = getDefaultInstance().getFingerprint();
onChanged();
return this;
}
/**
*
* Fingerprint of the certificate to deleted.
*
*
* string fingerprint = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for fingerprint to set.
* @return This builder for chaining.
*/
public Builder setFingerprintBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
fingerprint_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.DeleteRegistryCertificateMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeleteRegistryCertificateMetadata)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteRegistryCertificateMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteRegistryCertificateMetadata(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.RegistryServiceOuterClass.DeleteRegistryCertificateMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListRegistryPasswordsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListRegistryPasswordsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry to list passwords in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry to list passwords in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistryPasswordsRequest}
*/
public static final class ListRegistryPasswordsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListRegistryPasswordsRequest)
ListRegistryPasswordsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListRegistryPasswordsRequest.newBuilder() to construct.
private ListRegistryPasswordsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListRegistryPasswordsRequest() {
registryId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListRegistryPasswordsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListRegistryPasswordsRequest(
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;
}
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryPasswordsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryPasswordsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry to list passwords in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of the registry to list passwords in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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_);
}
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_);
}
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.RegistryServiceOuterClass.ListRegistryPasswordsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest 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.RegistryServiceOuterClass.ListRegistryPasswordsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest 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.RegistryServiceOuterClass.ListRegistryPasswordsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest 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.RegistryServiceOuterClass.ListRegistryPasswordsRequest 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.RegistryServiceOuterClass.ListRegistryPasswordsRequest 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.RegistryServiceOuterClass.ListRegistryPasswordsRequest 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.RegistryServiceOuterClass.ListRegistryPasswordsRequest 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.RegistryServiceOuterClass.ListRegistryPasswordsRequest 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.RegistryServiceOuterClass.ListRegistryPasswordsRequest 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.RegistryServiceOuterClass.ListRegistryPasswordsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistryPasswordsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListRegistryPasswordsRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryPasswordsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryPasswordsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryPasswordsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest(this);
result.registryId_ = registryId_;
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.RegistryServiceOuterClass.ListRegistryPasswordsRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
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.RegistryServiceOuterClass.ListRegistryPasswordsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry to list passwords in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the registry to list passwords in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the registry to list passwords in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of the registry to list passwords in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry to list passwords in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
@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.ListRegistryPasswordsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListRegistryPasswordsRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListRegistryPasswordsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListRegistryPasswordsRequest(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.RegistryServiceOuterClass.ListRegistryPasswordsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListRegistryPasswordsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListRegistryPasswordsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
java.util.List
getPasswordsList();
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword getPasswords(int index);
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
int getPasswordsCount();
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPasswordOrBuilder>
getPasswordsOrBuilderList();
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPasswordOrBuilder getPasswordsOrBuilder(
int index);
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistryPasswordsResponse}
*/
public static final class ListRegistryPasswordsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListRegistryPasswordsResponse)
ListRegistryPasswordsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListRegistryPasswordsResponse.newBuilder() to construct.
private ListRegistryPasswordsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListRegistryPasswordsResponse() {
passwords_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListRegistryPasswordsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListRegistryPasswordsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
passwords_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
passwords_.add(
input.readMessage(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
passwords_ = java.util.Collections.unmodifiableList(passwords_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryPasswordsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryPasswordsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse.Builder.class);
}
public static final int PASSWORDS_FIELD_NUMBER = 1;
private java.util.List passwords_;
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
@java.lang.Override
public java.util.List getPasswordsList() {
return passwords_;
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPasswordOrBuilder>
getPasswordsOrBuilderList() {
return passwords_;
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
@java.lang.Override
public int getPasswordsCount() {
return passwords_.size();
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword getPasswords(int index) {
return passwords_.get(index);
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPasswordOrBuilder getPasswordsOrBuilder(
int index) {
return passwords_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < passwords_.size(); i++) {
output.writeMessage(1, passwords_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < passwords_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, passwords_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse) obj;
if (!getPasswordsList()
.equals(other.getPasswordsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getPasswordsCount() > 0) {
hash = (37 * hash) + PASSWORDS_FIELD_NUMBER;
hash = (53 * hash) + getPasswordsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse 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.RegistryServiceOuterClass.ListRegistryPasswordsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse 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.RegistryServiceOuterClass.ListRegistryPasswordsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse 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.RegistryServiceOuterClass.ListRegistryPasswordsResponse 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.RegistryServiceOuterClass.ListRegistryPasswordsResponse 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.RegistryServiceOuterClass.ListRegistryPasswordsResponse 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.RegistryServiceOuterClass.ListRegistryPasswordsResponse 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.RegistryServiceOuterClass.ListRegistryPasswordsResponse 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.RegistryServiceOuterClass.ListRegistryPasswordsResponse 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.RegistryServiceOuterClass.ListRegistryPasswordsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistryPasswordsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListRegistryPasswordsResponse)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryPasswordsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryPasswordsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPasswordsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (passwordsBuilder_ == null) {
passwords_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
passwordsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryPasswordsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse(this);
int from_bitField0_ = bitField0_;
if (passwordsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
passwords_ = java.util.Collections.unmodifiableList(passwords_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.passwords_ = passwords_;
} else {
result.passwords_ = passwordsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse.getDefaultInstance()) return this;
if (passwordsBuilder_ == null) {
if (!other.passwords_.isEmpty()) {
if (passwords_.isEmpty()) {
passwords_ = other.passwords_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePasswordsIsMutable();
passwords_.addAll(other.passwords_);
}
onChanged();
}
} else {
if (!other.passwords_.isEmpty()) {
if (passwordsBuilder_.isEmpty()) {
passwordsBuilder_.dispose();
passwordsBuilder_ = null;
passwords_ = other.passwords_;
bitField0_ = (bitField0_ & ~0x00000001);
passwordsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPasswordsFieldBuilder() : null;
} else {
passwordsBuilder_.addAllMessages(other.passwords_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List passwords_ =
java.util.Collections.emptyList();
private void ensurePasswordsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
passwords_ = new java.util.ArrayList(passwords_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.Builder, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPasswordOrBuilder> passwordsBuilder_;
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public java.util.List getPasswordsList() {
if (passwordsBuilder_ == null) {
return java.util.Collections.unmodifiableList(passwords_);
} else {
return passwordsBuilder_.getMessageList();
}
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public int getPasswordsCount() {
if (passwordsBuilder_ == null) {
return passwords_.size();
} else {
return passwordsBuilder_.getCount();
}
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword getPasswords(int index) {
if (passwordsBuilder_ == null) {
return passwords_.get(index);
} else {
return passwordsBuilder_.getMessage(index);
}
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public Builder setPasswords(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword value) {
if (passwordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePasswordsIsMutable();
passwords_.set(index, value);
onChanged();
} else {
passwordsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public Builder setPasswords(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.Builder builderForValue) {
if (passwordsBuilder_ == null) {
ensurePasswordsIsMutable();
passwords_.set(index, builderForValue.build());
onChanged();
} else {
passwordsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public Builder addPasswords(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword value) {
if (passwordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePasswordsIsMutable();
passwords_.add(value);
onChanged();
} else {
passwordsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public Builder addPasswords(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword value) {
if (passwordsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePasswordsIsMutable();
passwords_.add(index, value);
onChanged();
} else {
passwordsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public Builder addPasswords(
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.Builder builderForValue) {
if (passwordsBuilder_ == null) {
ensurePasswordsIsMutable();
passwords_.add(builderForValue.build());
onChanged();
} else {
passwordsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public Builder addPasswords(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.Builder builderForValue) {
if (passwordsBuilder_ == null) {
ensurePasswordsIsMutable();
passwords_.add(index, builderForValue.build());
onChanged();
} else {
passwordsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public Builder addAllPasswords(
java.lang.Iterable extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword> values) {
if (passwordsBuilder_ == null) {
ensurePasswordsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, passwords_);
onChanged();
} else {
passwordsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public Builder clearPasswords() {
if (passwordsBuilder_ == null) {
passwords_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
passwordsBuilder_.clear();
}
return this;
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public Builder removePasswords(int index) {
if (passwordsBuilder_ == null) {
ensurePasswordsIsMutable();
passwords_.remove(index);
onChanged();
} else {
passwordsBuilder_.remove(index);
}
return this;
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.Builder getPasswordsBuilder(
int index) {
return getPasswordsFieldBuilder().getBuilder(index);
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPasswordOrBuilder getPasswordsOrBuilder(
int index) {
if (passwordsBuilder_ == null) {
return passwords_.get(index); } else {
return passwordsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPasswordOrBuilder>
getPasswordsOrBuilderList() {
if (passwordsBuilder_ != null) {
return passwordsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(passwords_);
}
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.Builder addPasswordsBuilder() {
return getPasswordsFieldBuilder().addBuilder(
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.getDefaultInstance());
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.Builder addPasswordsBuilder(
int index) {
return getPasswordsFieldBuilder().addBuilder(
index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.getDefaultInstance());
}
/**
*
* List of passwords for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.RegistryPassword passwords = 1;
*/
public java.util.List
getPasswordsBuilderList() {
return getPasswordsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.Builder, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPasswordOrBuilder>
getPasswordsFieldBuilder() {
if (passwordsBuilder_ == null) {
passwordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPassword.Builder, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.RegistryPasswordOrBuilder>(
passwords_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
passwords_ = null;
}
return passwordsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.ListRegistryPasswordsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListRegistryPasswordsResponse)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryPasswordsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListRegistryPasswordsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListRegistryPasswordsResponse(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.RegistryServiceOuterClass.ListRegistryPasswordsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddRegistryPasswordRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.AddRegistryPasswordRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry to add a password for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry to add a password for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* Passwords for the registry.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 2 [(.yandex.cloud.length) = ">=14"];
* @return The password.
*/
java.lang.String getPassword();
/**
*
* Passwords for the registry.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 2 [(.yandex.cloud.length) = ">=14"];
* @return The bytes for password.
*/
com.google.protobuf.ByteString
getPasswordBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.AddRegistryPasswordRequest}
*/
public static final class AddRegistryPasswordRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.AddRegistryPasswordRequest)
AddRegistryPasswordRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddRegistryPasswordRequest.newBuilder() to construct.
private AddRegistryPasswordRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddRegistryPasswordRequest() {
registryId_ = "";
password_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddRegistryPasswordRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddRegistryPasswordRequest(
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();
password_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryPasswordRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryPasswordRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry to add a password for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of the registry to add a password for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PASSWORD_FIELD_NUMBER = 2;
private volatile java.lang.Object password_;
/**
*
* Passwords for the registry.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 2 [(.yandex.cloud.length) = ">=14"];
* @return The password.
*/
@java.lang.Override
public java.lang.String getPassword() {
java.lang.Object ref = password_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
password_ = s;
return s;
}
}
/**
*
* Passwords for the registry.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 2 [(.yandex.cloud.length) = ">=14"];
* @return The bytes for password.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPasswordBytes() {
java.lang.Object ref = password_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
password_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) return false;
if (!getPassword()
.equals(other.getPassword())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REGISTRY_ID_FIELD_NUMBER;
hash = (53 * hash) + getRegistryId().hashCode();
hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
hash = (53 * hash) + getPassword().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest 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.RegistryServiceOuterClass.AddRegistryPasswordRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest 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.RegistryServiceOuterClass.AddRegistryPasswordRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest 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.RegistryServiceOuterClass.AddRegistryPasswordRequest 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.RegistryServiceOuterClass.AddRegistryPasswordRequest 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.RegistryServiceOuterClass.AddRegistryPasswordRequest 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.RegistryServiceOuterClass.AddRegistryPasswordRequest 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.RegistryServiceOuterClass.AddRegistryPasswordRequest 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.RegistryServiceOuterClass.AddRegistryPasswordRequest 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.RegistryServiceOuterClass.AddRegistryPasswordRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.AddRegistryPasswordRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.AddRegistryPasswordRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryPasswordRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryPasswordRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest.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_ = "";
password_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryPasswordRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest(this);
result.registryId_ = registryId_;
result.password_ = password_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
onChanged();
}
if (!other.getPassword().isEmpty()) {
password_ = other.password_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry to add a password for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the registry to add a password for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the registry to add a password for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of the registry to add a password for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry to add a password for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
private java.lang.Object password_ = "";
/**
*
* Passwords for the registry.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 2 [(.yandex.cloud.length) = ">=14"];
* @return The password.
*/
public java.lang.String getPassword() {
java.lang.Object ref = password_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
password_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Passwords for the registry.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 2 [(.yandex.cloud.length) = ">=14"];
* @return The bytes for password.
*/
public com.google.protobuf.ByteString
getPasswordBytes() {
java.lang.Object ref = password_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
password_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Passwords for the registry.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 2 [(.yandex.cloud.length) = ">=14"];
* @param value The password to set.
* @return This builder for chaining.
*/
public Builder setPassword(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
password_ = value;
onChanged();
return this;
}
/**
*
* Passwords for the registry.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 2 [(.yandex.cloud.length) = ">=14"];
* @return This builder for chaining.
*/
public Builder clearPassword() {
password_ = getDefaultInstance().getPassword();
onChanged();
return this;
}
/**
*
* Passwords for the registry.
* The password must contain at least three character categories among the following: upper case latin, lower case latin, numbers and special symbols.
*
*
* string password = 2 [(.yandex.cloud.length) = ">=14"];
* @param value The bytes for password to set.
* @return This builder for chaining.
*/
public Builder setPasswordBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
password_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.AddRegistryPasswordRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.AddRegistryPasswordRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddRegistryPasswordRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddRegistryPasswordRequest(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.RegistryServiceOuterClass.AddRegistryPasswordRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddRegistryPasswordMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.AddRegistryPasswordMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry for which the password is being added.
*
*
* string registry_id = 1;
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry for which the password is being added.
*
*
* string registry_id = 1;
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* ID of a password that is being added.
*
*
* string password_id = 2;
* @return The passwordId.
*/
java.lang.String getPasswordId();
/**
*
* ID of a password that is being added.
*
*
* string password_id = 2;
* @return The bytes for passwordId.
*/
com.google.protobuf.ByteString
getPasswordIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.AddRegistryPasswordMetadata}
*/
public static final class AddRegistryPasswordMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.AddRegistryPasswordMetadata)
AddRegistryPasswordMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddRegistryPasswordMetadata.newBuilder() to construct.
private AddRegistryPasswordMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddRegistryPasswordMetadata() {
registryId_ = "";
passwordId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddRegistryPasswordMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddRegistryPasswordMetadata(
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();
passwordId_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryPasswordMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryPasswordMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry for which the password is being added.
*
*
* 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 for which the password is being added.
*
*
* 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 PASSWORD_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object passwordId_;
/**
*
* ID of a password that is being added.
*
*
* string password_id = 2;
* @return The passwordId.
*/
@java.lang.Override
public java.lang.String getPasswordId() {
java.lang.Object ref = passwordId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
passwordId_ = s;
return s;
}
}
/**
*
* ID of a password that is being added.
*
*
* string password_id = 2;
* @return The bytes for passwordId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPasswordIdBytes() {
java.lang.Object ref = passwordId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
passwordId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passwordId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, passwordId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passwordId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, passwordId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) return false;
if (!getPasswordId()
.equals(other.getPasswordId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REGISTRY_ID_FIELD_NUMBER;
hash = (53 * hash) + getRegistryId().hashCode();
hash = (37 * hash) + PASSWORD_ID_FIELD_NUMBER;
hash = (53 * hash) + getPasswordId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata 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.RegistryServiceOuterClass.AddRegistryPasswordMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata 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.RegistryServiceOuterClass.AddRegistryPasswordMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata 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.RegistryServiceOuterClass.AddRegistryPasswordMetadata 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.RegistryServiceOuterClass.AddRegistryPasswordMetadata 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.RegistryServiceOuterClass.AddRegistryPasswordMetadata 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.RegistryServiceOuterClass.AddRegistryPasswordMetadata 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.RegistryServiceOuterClass.AddRegistryPasswordMetadata 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.RegistryServiceOuterClass.AddRegistryPasswordMetadata 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.RegistryServiceOuterClass.AddRegistryPasswordMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.AddRegistryPasswordMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.AddRegistryPasswordMetadata)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryPasswordMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryPasswordMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata.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_ = "";
passwordId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddRegistryPasswordMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata(this);
result.registryId_ = registryId_;
result.passwordId_ = passwordId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
onChanged();
}
if (!other.getPasswordId().isEmpty()) {
passwordId_ = other.passwordId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry for which the password is being added.
*
*
* 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 for which the password is being added.
*
*
* 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 for which the password is being added.
*
*
* 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 for which the password is being added.
*
*
* string registry_id = 1;
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry for which the password is being added.
*
*
* 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 passwordId_ = "";
/**
*
* ID of a password that is being added.
*
*
* string password_id = 2;
* @return The passwordId.
*/
public java.lang.String getPasswordId() {
java.lang.Object ref = passwordId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
passwordId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of a password that is being added.
*
*
* string password_id = 2;
* @return The bytes for passwordId.
*/
public com.google.protobuf.ByteString
getPasswordIdBytes() {
java.lang.Object ref = passwordId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
passwordId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of a password that is being added.
*
*
* string password_id = 2;
* @param value The passwordId to set.
* @return This builder for chaining.
*/
public Builder setPasswordId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
passwordId_ = value;
onChanged();
return this;
}
/**
*
* ID of a password that is being added.
*
*
* string password_id = 2;
* @return This builder for chaining.
*/
public Builder clearPasswordId() {
passwordId_ = getDefaultInstance().getPasswordId();
onChanged();
return this;
}
/**
*
* ID of a password that is being added.
*
*
* string password_id = 2;
* @param value The bytes for passwordId to set.
* @return This builder for chaining.
*/
public Builder setPasswordIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
passwordId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.AddRegistryPasswordMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.AddRegistryPasswordMetadata)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddRegistryPasswordMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddRegistryPasswordMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddRegistryPasswordMetadata(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.RegistryServiceOuterClass.AddRegistryPasswordMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteRegistryPasswordRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeleteRegistryPasswordRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry to delete a password for.
* To get a registry ID make a [DeviceService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry to delete a password for.
* To get a registry ID make a [DeviceService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The passwordId.
*/
java.lang.String getPasswordId();
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for passwordId.
*/
com.google.protobuf.ByteString
getPasswordIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteRegistryPasswordRequest}
*/
public static final class DeleteRegistryPasswordRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeleteRegistryPasswordRequest)
DeleteRegistryPasswordRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteRegistryPasswordRequest.newBuilder() to construct.
private DeleteRegistryPasswordRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteRegistryPasswordRequest() {
registryId_ = "";
passwordId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteRegistryPasswordRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteRegistryPasswordRequest(
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();
passwordId_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryPasswordRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryPasswordRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry to delete a password for.
* To get a registry ID make a [DeviceService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of the registry to delete a password for.
* To get a registry ID make a [DeviceService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PASSWORD_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object passwordId_;
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The passwordId.
*/
@java.lang.Override
public java.lang.String getPasswordId() {
java.lang.Object ref = passwordId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
passwordId_ = s;
return s;
}
}
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for passwordId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPasswordIdBytes() {
java.lang.Object ref = passwordId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
passwordId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passwordId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, passwordId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passwordId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, passwordId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) return false;
if (!getPasswordId()
.equals(other.getPasswordId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REGISTRY_ID_FIELD_NUMBER;
hash = (53 * hash) + getRegistryId().hashCode();
hash = (37 * hash) + PASSWORD_ID_FIELD_NUMBER;
hash = (53 * hash) + getPasswordId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest 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.RegistryServiceOuterClass.DeleteRegistryPasswordRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest 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.RegistryServiceOuterClass.DeleteRegistryPasswordRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest 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.RegistryServiceOuterClass.DeleteRegistryPasswordRequest 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.RegistryServiceOuterClass.DeleteRegistryPasswordRequest 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.RegistryServiceOuterClass.DeleteRegistryPasswordRequest 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.RegistryServiceOuterClass.DeleteRegistryPasswordRequest 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.RegistryServiceOuterClass.DeleteRegistryPasswordRequest 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.RegistryServiceOuterClass.DeleteRegistryPasswordRequest 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.RegistryServiceOuterClass.DeleteRegistryPasswordRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteRegistryPasswordRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeleteRegistryPasswordRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryPasswordRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryPasswordRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest.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_ = "";
passwordId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryPasswordRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest(this);
result.registryId_ = registryId_;
result.passwordId_ = passwordId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
onChanged();
}
if (!other.getPasswordId().isEmpty()) {
passwordId_ = other.passwordId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry to delete a password for.
* To get a registry ID make a [DeviceService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the registry to delete a password for.
* To get a registry ID make a [DeviceService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the registry to delete a password for.
* To get a registry ID make a [DeviceService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of the registry to delete a password for.
* To get a registry ID make a [DeviceService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry to delete a password for.
* To get a registry ID make a [DeviceService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
private java.lang.Object passwordId_ = "";
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The passwordId.
*/
public java.lang.String getPasswordId() {
java.lang.Object ref = passwordId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
passwordId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for passwordId.
*/
public com.google.protobuf.ByteString
getPasswordIdBytes() {
java.lang.Object ref = passwordId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
passwordId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The passwordId to set.
* @return This builder for chaining.
*/
public Builder setPasswordId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
passwordId_ = value;
onChanged();
return this;
}
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearPasswordId() {
passwordId_ = getDefaultInstance().getPasswordId();
onChanged();
return this;
}
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for passwordId to set.
* @return This builder for chaining.
*/
public Builder setPasswordIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
passwordId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.DeleteRegistryPasswordRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeleteRegistryPasswordRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteRegistryPasswordRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteRegistryPasswordRequest(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.RegistryServiceOuterClass.DeleteRegistryPasswordRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteRegistryPasswordMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeleteRegistryPasswordMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of a registry for which the password is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of a registry for which the password is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The passwordId.
*/
java.lang.String getPasswordId();
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for passwordId.
*/
com.google.protobuf.ByteString
getPasswordIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteRegistryPasswordMetadata}
*/
public static final class DeleteRegistryPasswordMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeleteRegistryPasswordMetadata)
DeleteRegistryPasswordMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteRegistryPasswordMetadata.newBuilder() to construct.
private DeleteRegistryPasswordMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteRegistryPasswordMetadata() {
registryId_ = "";
passwordId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteRegistryPasswordMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteRegistryPasswordMetadata(
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();
passwordId_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryPasswordMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryPasswordMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of a registry for which the password is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of a registry for which the password is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PASSWORD_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object passwordId_;
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The passwordId.
*/
@java.lang.Override
public java.lang.String getPasswordId() {
java.lang.Object ref = passwordId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
passwordId_ = s;
return s;
}
}
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for passwordId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPasswordIdBytes() {
java.lang.Object ref = passwordId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
passwordId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passwordId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, passwordId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(passwordId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, passwordId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) return false;
if (!getPasswordId()
.equals(other.getPasswordId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REGISTRY_ID_FIELD_NUMBER;
hash = (53 * hash) + getRegistryId().hashCode();
hash = (37 * hash) + PASSWORD_ID_FIELD_NUMBER;
hash = (53 * hash) + getPasswordId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata 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.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata 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.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata 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.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata 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.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata 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.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata 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.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata 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.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata 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.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata 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.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteRegistryPasswordMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeleteRegistryPasswordMetadata)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryPasswordMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryPasswordMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata.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_ = "";
passwordId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteRegistryPasswordMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata(this);
result.registryId_ = registryId_;
result.passwordId_ = passwordId_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
onChanged();
}
if (!other.getPasswordId().isEmpty()) {
passwordId_ = other.passwordId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of a registry for which the password is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of a registry for which the password is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of a registry for which the password is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of a registry for which the password is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of a registry for which the password is being delete.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
private java.lang.Object passwordId_ = "";
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The passwordId.
*/
public java.lang.String getPasswordId() {
java.lang.Object ref = passwordId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
passwordId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for passwordId.
*/
public com.google.protobuf.ByteString
getPasswordIdBytes() {
java.lang.Object ref = passwordId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
passwordId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The passwordId to set.
* @return This builder for chaining.
*/
public Builder setPasswordId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
passwordId_ = value;
onChanged();
return this;
}
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearPasswordId() {
passwordId_ = getDefaultInstance().getPasswordId();
onChanged();
return this;
}
/**
*
* ID of the password to delete.
* To get a password ID make a [RegistryService.ListPasswords] request.
*
*
* string password_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for passwordId to set.
* @return This builder for chaining.
*/
public Builder setPasswordIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
passwordId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.DeleteRegistryPasswordMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeleteRegistryPasswordMetadata)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteRegistryPasswordMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteRegistryPasswordMetadata(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.RegistryServiceOuterClass.DeleteRegistryPasswordMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDeviceTopicAliasesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry to list aliases for device topic.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry to list aliases for device topic.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListDeviceTopicAliasesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDeviceTopicAliasesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDeviceTopicAliasesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesRequest}
*/
public static final class ListDeviceTopicAliasesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesRequest)
ListDeviceTopicAliasesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDeviceTopicAliasesRequest.newBuilder() to construct.
private ListDeviceTopicAliasesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDeviceTopicAliasesRequest() {
registryId_ = "";
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDeviceTopicAliasesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDeviceTopicAliasesRequest(
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 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = 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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceTopicAliasesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceTopicAliasesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry to list aliases for device topic.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of the registry to list aliases for device topic.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListDeviceTopicAliasesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDeviceTopicAliasesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDeviceTopicAliasesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
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 (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
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.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) 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) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest 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.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest 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.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest 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.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest 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.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest 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.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest 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.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest 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.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest 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.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest 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.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceTopicAliasesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceTopicAliasesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest.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_ = "";
pageSize_ = 0L;
pageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceTopicAliasesRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest(this);
result.registryId_ = registryId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
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.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
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.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry to list aliases for device topic.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the registry to list aliases for device topic.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the registry to list aliases for device topic.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of the registry to list aliases for device topic.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry to list aliases for device topic.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListDeviceTopicAliasesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListDeviceTopicAliasesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListDeviceTopicAliasesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDeviceTopicAliasesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDeviceTopicAliasesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDeviceTopicAliasesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDeviceTopicAliasesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListDeviceTopicAliasesResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = value;
onChanged();
return this;
}
@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.ListDeviceTopicAliasesRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDeviceTopicAliasesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDeviceTopicAliasesRequest(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.RegistryServiceOuterClass.ListDeviceTopicAliasesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDeviceTopicAliasesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
java.util.List
getAliasesList();
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias getAliases(int index);
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
int getAliasesCount();
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAliasOrBuilder>
getAliasesOrBuilderList();
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAliasOrBuilder getAliasesOrBuilder(
int index);
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDeviceTopicAliasesRequest.page_size], use `next_page_token` as the value
* for the [ListDeviceTopicAliasesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDeviceTopicAliasesRequest.page_size], use `next_page_token` as the value
* for the [ListDeviceTopicAliasesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesResponse}
*/
public static final class ListDeviceTopicAliasesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesResponse)
ListDeviceTopicAliasesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDeviceTopicAliasesResponse.newBuilder() to construct.
private ListDeviceTopicAliasesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDeviceTopicAliasesResponse() {
aliases_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDeviceTopicAliasesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDeviceTopicAliasesResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
aliases_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
aliases_.add(
input.readMessage(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
aliases_ = java.util.Collections.unmodifiableList(aliases_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceTopicAliasesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceTopicAliasesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse.Builder.class);
}
public static final int ALIASES_FIELD_NUMBER = 1;
private java.util.List aliases_;
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
@java.lang.Override
public java.util.List getAliasesList() {
return aliases_;
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAliasOrBuilder>
getAliasesOrBuilderList() {
return aliases_;
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
@java.lang.Override
public int getAliasesCount() {
return aliases_.size();
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias getAliases(int index) {
return aliases_.get(index);
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAliasOrBuilder getAliasesOrBuilder(
int index) {
return aliases_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDeviceTopicAliasesRequest.page_size], use `next_page_token` as the value
* for the [ListDeviceTopicAliasesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDeviceTopicAliasesRequest.page_size], use `next_page_token` as the value
* for the [ListDeviceTopicAliasesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < aliases_.size(); i++) {
output.writeMessage(1, aliases_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < aliases_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, aliases_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse) obj;
if (!getAliasesList()
.equals(other.getAliasesList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getAliasesCount() > 0) {
hash = (37 * hash) + ALIASES_FIELD_NUMBER;
hash = (53 * hash) + getAliasesList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse 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.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse 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.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse 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.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse 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.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse 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.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse 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.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse 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.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse 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.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse 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.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesResponse)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceTopicAliasesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceTopicAliasesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAliasesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (aliasesBuilder_ == null) {
aliases_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
aliasesBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDeviceTopicAliasesResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse(this);
int from_bitField0_ = bitField0_;
if (aliasesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
aliases_ = java.util.Collections.unmodifiableList(aliases_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.aliases_ = aliases_;
} else {
result.aliases_ = aliasesBuilder_.build();
}
result.nextPageToken_ = nextPageToken_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse.getDefaultInstance()) return this;
if (aliasesBuilder_ == null) {
if (!other.aliases_.isEmpty()) {
if (aliases_.isEmpty()) {
aliases_ = other.aliases_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAliasesIsMutable();
aliases_.addAll(other.aliases_);
}
onChanged();
}
} else {
if (!other.aliases_.isEmpty()) {
if (aliasesBuilder_.isEmpty()) {
aliasesBuilder_.dispose();
aliasesBuilder_ = null;
aliases_ = other.aliases_;
bitField0_ = (bitField0_ & ~0x00000001);
aliasesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAliasesFieldBuilder() : null;
} else {
aliasesBuilder_.addAllMessages(other.aliases_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List aliases_ =
java.util.Collections.emptyList();
private void ensureAliasesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
aliases_ = new java.util.ArrayList(aliases_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.Builder, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAliasOrBuilder> aliasesBuilder_;
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public java.util.List getAliasesList() {
if (aliasesBuilder_ == null) {
return java.util.Collections.unmodifiableList(aliases_);
} else {
return aliasesBuilder_.getMessageList();
}
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public int getAliasesCount() {
if (aliasesBuilder_ == null) {
return aliases_.size();
} else {
return aliasesBuilder_.getCount();
}
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias getAliases(int index) {
if (aliasesBuilder_ == null) {
return aliases_.get(index);
} else {
return aliasesBuilder_.getMessage(index);
}
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public Builder setAliases(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias value) {
if (aliasesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliasesIsMutable();
aliases_.set(index, value);
onChanged();
} else {
aliasesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public Builder setAliases(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.Builder builderForValue) {
if (aliasesBuilder_ == null) {
ensureAliasesIsMutable();
aliases_.set(index, builderForValue.build());
onChanged();
} else {
aliasesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public Builder addAliases(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias value) {
if (aliasesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliasesIsMutable();
aliases_.add(value);
onChanged();
} else {
aliasesBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public Builder addAliases(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias value) {
if (aliasesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliasesIsMutable();
aliases_.add(index, value);
onChanged();
} else {
aliasesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public Builder addAliases(
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.Builder builderForValue) {
if (aliasesBuilder_ == null) {
ensureAliasesIsMutable();
aliases_.add(builderForValue.build());
onChanged();
} else {
aliasesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public Builder addAliases(
int index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.Builder builderForValue) {
if (aliasesBuilder_ == null) {
ensureAliasesIsMutable();
aliases_.add(index, builderForValue.build());
onChanged();
} else {
aliasesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public Builder addAllAliases(
java.lang.Iterable extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias> values) {
if (aliasesBuilder_ == null) {
ensureAliasesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, aliases_);
onChanged();
} else {
aliasesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public Builder clearAliases() {
if (aliasesBuilder_ == null) {
aliases_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
aliasesBuilder_.clear();
}
return this;
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public Builder removeAliases(int index) {
if (aliasesBuilder_ == null) {
ensureAliasesIsMutable();
aliases_.remove(index);
onChanged();
} else {
aliasesBuilder_.remove(index);
}
return this;
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.Builder getAliasesBuilder(
int index) {
return getAliasesFieldBuilder().getBuilder(index);
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAliasOrBuilder getAliasesOrBuilder(
int index) {
if (aliasesBuilder_ == null) {
return aliases_.get(index); } else {
return aliasesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAliasOrBuilder>
getAliasesOrBuilderList() {
if (aliasesBuilder_ != null) {
return aliasesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(aliases_);
}
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.Builder addAliasesBuilder() {
return getAliasesFieldBuilder().addBuilder(
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.getDefaultInstance());
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.Builder addAliasesBuilder(
int index) {
return getAliasesFieldBuilder().addBuilder(
index, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.getDefaultInstance());
}
/**
*
* List of device aliases for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DeviceAlias aliases = 1;
*/
public java.util.List
getAliasesBuilderList() {
return getAliasesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.Builder, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAliasOrBuilder>
getAliasesFieldBuilder() {
if (aliasesBuilder_ == null) {
aliasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAlias.Builder, yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DeviceAliasOrBuilder>(
aliases_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
aliases_ = null;
}
return aliasesBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDeviceTopicAliasesRequest.page_size], use `next_page_token` as the value
* for the [ListDeviceTopicAliasesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDeviceTopicAliasesRequest.page_size], use `next_page_token` as the value
* for the [ListDeviceTopicAliasesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDeviceTopicAliasesRequest.page_size], use `next_page_token` as the value
* for the [ListDeviceTopicAliasesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
onChanged();
return this;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDeviceTopicAliasesRequest.page_size], use `next_page_token` as the value
* for the [ListDeviceTopicAliasesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListDeviceTopicAliasesRequest.page_size], use `next_page_token` as the value
* for the [ListDeviceTopicAliasesRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListDeviceTopicAliasesResponse)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDeviceTopicAliasesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDeviceTopicAliasesResponse(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.RegistryServiceOuterClass.ListDeviceTopicAliasesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListRegistryOperationsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListRegistryOperationsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry to list operations for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry to list operations for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListRegistryOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistryOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistryOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on [Registry.name] field.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
java.lang.String getFilter();
/**
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on [Registry.name] field.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistryOperationsRequest}
*/
public static final class ListRegistryOperationsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListRegistryOperationsRequest)
ListRegistryOperationsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListRegistryOperationsRequest.newBuilder() to construct.
private ListRegistryOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListRegistryOperationsRequest() {
registryId_ = "";
pageToken_ = "";
filter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListRegistryOperationsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListRegistryOperationsRequest(
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 16: {
pageSize_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
filter_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry to list operations for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of the registry to list operations for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @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 PAGE_SIZE_FIELD_NUMBER = 2;
private long pageSize_;
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListRegistryOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistryOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistryOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILTER_FIELD_NUMBER = 4;
private volatile java.lang.Object filter_;
/**
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on [Registry.name] field.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
@java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
}
}
/**
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on [Registry.name] field.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_);
}
if (pageSize_ != 0L) {
output.writeInt64(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, registryId_);
}
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) return false;
if (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) return false;
if (!getFilter()
.equals(other.getFilter())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + REGISTRY_ID_FIELD_NUMBER;
hash = (53 * hash) + getRegistryId().hashCode();
hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPageSize());
hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getPageToken().hashCode();
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest 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.RegistryServiceOuterClass.ListRegistryOperationsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest 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.RegistryServiceOuterClass.ListRegistryOperationsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest 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.RegistryServiceOuterClass.ListRegistryOperationsRequest 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.RegistryServiceOuterClass.ListRegistryOperationsRequest 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.RegistryServiceOuterClass.ListRegistryOperationsRequest 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.RegistryServiceOuterClass.ListRegistryOperationsRequest 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.RegistryServiceOuterClass.ListRegistryOperationsRequest 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.RegistryServiceOuterClass.ListRegistryOperationsRequest 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.RegistryServiceOuterClass.ListRegistryOperationsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistryOperationsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListRegistryOperationsRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest.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_ = "";
pageSize_ = 0L;
pageToken_ = "";
filter_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryOperationsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest(this);
result.registryId_ = registryId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
result.filter_ = filter_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
onChanged();
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
onChanged();
}
if (!other.getFilter().isEmpty()) {
filter_ = other.filter_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry to list operations for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the registry to list operations for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the registry to list operations for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of the registry to list operations for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry to list operations for.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @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 long pageSize_ ;
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListRegistryOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListRegistryOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page that should be returned. If the number of available
* results is larger than `page_size`, the service returns a [ListRegistryOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
* Default value: 100.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistryOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistryOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
public com.google.protobuf.ByteString
getPageTokenBytes() {
java.lang.Object ref = pageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistryOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pageToken_ = value;
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistryOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearPageToken() {
pageToken_ = getDefaultInstance().getPageToken();
onChanged();
return this;
}
/**
*
* Page token. To get the next page of results, set `page_token` to the
* [ListRegistryOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for pageToken to set.
* @return This builder for chaining.
*/
public Builder setPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pageToken_ = value;
onChanged();
return this;
}
private java.lang.Object filter_ = "";
/**
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on [Registry.name] field.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on [Registry.name] field.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on [Registry.name] field.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @param value The filter to set.
* @return This builder for chaining.
*/
public Builder setFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
return this;
}
/**
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on [Registry.name] field.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearFilter() {
filter_ = getDefaultInstance().getFilter();
onChanged();
return this;
}
/**
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on [Registry.name] field.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @param value The bytes for filter to set.
* @return This builder for chaining.
*/
public Builder setFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
filter_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.ListRegistryOperationsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListRegistryOperationsRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListRegistryOperationsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListRegistryOperationsRequest(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.RegistryServiceOuterClass.ListRegistryOperationsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListRegistryOperationsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListRegistryOperationsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
java.util.List
getOperationsList();
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index);
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
int getOperationsCount();
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList();
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder(
int index);
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistryOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListRegistryOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistryOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListRegistryOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistryOperationsResponse}
*/
public static final class ListRegistryOperationsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListRegistryOperationsResponse)
ListRegistryOperationsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListRegistryOperationsResponse.newBuilder() to construct.
private ListRegistryOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListRegistryOperationsResponse() {
operations_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListRegistryOperationsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListRegistryOperationsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
operations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
operations_.add(
input.readMessage(yandex.cloud.api.operation.OperationOuterClass.Operation.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse.Builder.class);
}
public static final int OPERATIONS_FIELD_NUMBER = 1;
private java.util.List operations_;
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public java.util.List getOperationsList() {
return operations_;
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList() {
return operations_;
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public int getOperationsCount() {
return operations_.size();
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) {
return operations_.get(index);
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder(
int index) {
return operations_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistryOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListRegistryOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistryOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListRegistryOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < operations_.size(); i++) {
output.writeMessage(1, operations_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < operations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, operations_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse) obj;
if (!getOperationsList()
.equals(other.getOperationsList())) return false;
if (!getNextPageToken()
.equals(other.getNextPageToken())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getOperationsCount() > 0) {
hash = (37 * hash) + OPERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getOperationsList().hashCode();
}
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse 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.RegistryServiceOuterClass.ListRegistryOperationsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse 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.RegistryServiceOuterClass.ListRegistryOperationsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse 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.RegistryServiceOuterClass.ListRegistryOperationsResponse 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.RegistryServiceOuterClass.ListRegistryOperationsResponse 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.RegistryServiceOuterClass.ListRegistryOperationsResponse 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.RegistryServiceOuterClass.ListRegistryOperationsResponse 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.RegistryServiceOuterClass.ListRegistryOperationsResponse 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.RegistryServiceOuterClass.ListRegistryOperationsResponse 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.RegistryServiceOuterClass.ListRegistryOperationsResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListRegistryOperationsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListRegistryOperationsResponse)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOperationsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationsBuilder_ == null) {
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
operationsBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListRegistryOperationsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse(this);
int from_bitField0_ = bitField0_;
if (operationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
operations_ = java.util.Collections.unmodifiableList(operations_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.operations_ = operations_;
} else {
result.operations_ = operationsBuilder_.build();
}
result.nextPageToken_ = nextPageToken_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse.getDefaultInstance()) return this;
if (operationsBuilder_ == null) {
if (!other.operations_.isEmpty()) {
if (operations_.isEmpty()) {
operations_ = other.operations_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOperationsIsMutable();
operations_.addAll(other.operations_);
}
onChanged();
}
} else {
if (!other.operations_.isEmpty()) {
if (operationsBuilder_.isEmpty()) {
operationsBuilder_.dispose();
operationsBuilder_ = null;
operations_ = other.operations_;
bitField0_ = (bitField0_ & ~0x00000001);
operationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOperationsFieldBuilder() : null;
} else {
operationsBuilder_.addAllMessages(other.operations_);
}
}
}
if (!other.getNextPageToken().isEmpty()) {
nextPageToken_ = other.nextPageToken_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List operations_ =
java.util.Collections.emptyList();
private void ensureOperationsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
operations_ = new java.util.ArrayList(operations_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder> operationsBuilder_;
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public java.util.List getOperationsList() {
if (operationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(operations_);
} else {
return operationsBuilder_.getMessageList();
}
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public int getOperationsCount() {
if (operationsBuilder_ == null) {
return operations_.size();
} else {
return operationsBuilder_.getCount();
}
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) {
if (operationsBuilder_ == null) {
return operations_.get(index);
} else {
return operationsBuilder_.getMessage(index);
}
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder setOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.set(index, value);
onChanged();
} else {
operationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder setOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.set(index, builderForValue.build());
onChanged();
} else {
operationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(yandex.cloud.api.operation.OperationOuterClass.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.add(value);
onChanged();
} else {
operationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.add(index, value);
onChanged();
} else {
operationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(
yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.add(builderForValue.build());
onChanged();
} else {
operationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.add(index, builderForValue.build());
onChanged();
} else {
operationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addAllOperations(
java.lang.Iterable extends yandex.cloud.api.operation.OperationOuterClass.Operation> values) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, operations_);
onChanged();
} else {
operationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder clearOperations() {
if (operationsBuilder_ == null) {
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
operationsBuilder_.clear();
}
return this;
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder removeOperations(int index) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.remove(index);
onChanged();
} else {
operationsBuilder_.remove(index);
}
return this;
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder getOperationsBuilder(
int index) {
return getOperationsFieldBuilder().getBuilder(index);
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder(
int index) {
if (operationsBuilder_ == null) {
return operations_.get(index); } else {
return operationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList() {
if (operationsBuilder_ != null) {
return operationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(operations_);
}
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder() {
return getOperationsFieldBuilder().addBuilder(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance());
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder(
int index) {
return getOperationsFieldBuilder().addBuilder(
index, yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance());
}
/**
*
* List of operations for the specified registry.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public java.util.List
getOperationsBuilderList() {
return getOperationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsFieldBuilder() {
if (operationsBuilder_ == null) {
operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>(
operations_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
operations_ = null;
}
return operationsBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistryOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListRegistryOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistryOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListRegistryOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString
getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistryOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListRegistryOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
onChanged();
return this;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistryOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListRegistryOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
*
* Token for getting the next page of the list. If the number of results is greater than
* the specified [ListRegistryOperationsRequest.page_size], use `next_page_token` as the value
* for the [ListRegistryOperationsRequest.page_token] parameter in the next list request.
* Each subsequent page will have its own `next_page_token` to continue paging through the results.
*
*
* string next_page_token = 2;
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.iot.devices.v1.ListRegistryOperationsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListRegistryOperationsResponse)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListRegistryOperationsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListRegistryOperationsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListRegistryOperationsResponse(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.RegistryServiceOuterClass.ListRegistryOperationsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddDataStreamExportRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.AddDataStreamExportRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the YDS export. The name must be unique within the folder.
*
*
* string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the YDS export. The name must be unique within the folder.
*
*
* string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* ID of the registry to add a YDS export for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry to add a YDS export for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* MQTT topic whose messages export to YDS.
*
*
* string mqtt_topic_filter = 4 [(.yandex.cloud.length) = "<=1024"];
* @return The mqttTopicFilter.
*/
java.lang.String getMqttTopicFilter();
/**
*
* MQTT topic whose messages export to YDS.
*
*
* string mqtt_topic_filter = 4 [(.yandex.cloud.length) = "<=1024"];
* @return The bytes for mqttTopicFilter.
*/
com.google.protobuf.ByteString
getMqttTopicFilterBytes();
/**
*
* YDS database.
*
*
* string database = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @return The database.
*/
java.lang.String getDatabase();
/**
*
* YDS database.
*
*
* string database = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @return The bytes for database.
*/
com.google.protobuf.ByteString
getDatabaseBytes();
/**
*
* YDS stream name.
*
*
* string stream = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @return The stream.
*/
java.lang.String getStream();
/**
*
* YDS stream name.
*
*
* string stream = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for serviceAccountId.
*/
com.google.protobuf.ByteString
getServiceAccountIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.AddDataStreamExportRequest}
*/
public static final class AddDataStreamExportRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.AddDataStreamExportRequest)
AddDataStreamExportRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddDataStreamExportRequest.newBuilder() to construct.
private AddDataStreamExportRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddDataStreamExportRequest() {
name_ = "";
registryId_ = "";
mqttTopicFilter_ = "";
database_ = "";
stream_ = "";
serviceAccountId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddDataStreamExportRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddDataStreamExportRequest(
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();
name_ = s;
break;
}
case 18: {
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;
}
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDataStreamExportRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDataStreamExportRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of the YDS export. The name must be unique within the folder.
*
*
* string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the YDS export. The name must be unique within the folder.
*
*
* string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REGISTRY_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry to add a YDS export for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of the registry to add a YDS export for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MQTT_TOPIC_FILTER_FIELD_NUMBER = 4;
private volatile java.lang.Object mqttTopicFilter_;
/**
*
* MQTT topic whose messages export to YDS.
*
*
* string mqtt_topic_filter = 4 [(.yandex.cloud.length) = "<=1024"];
* @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 [(.yandex.cloud.length) = "<=1024"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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;
}
}
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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, 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_);
}
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(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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_);
}
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.RegistryServiceOuterClass.AddDataStreamExportRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest) obj;
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 (!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) + 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();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest 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.RegistryServiceOuterClass.AddDataStreamExportRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest 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.RegistryServiceOuterClass.AddDataStreamExportRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest 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.RegistryServiceOuterClass.AddDataStreamExportRequest 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.RegistryServiceOuterClass.AddDataStreamExportRequest 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.RegistryServiceOuterClass.AddDataStreamExportRequest 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.RegistryServiceOuterClass.AddDataStreamExportRequest 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.RegistryServiceOuterClass.AddDataStreamExportRequest 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.RegistryServiceOuterClass.AddDataStreamExportRequest 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.RegistryServiceOuterClass.AddDataStreamExportRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.AddDataStreamExportRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.AddDataStreamExportRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDataStreamExportRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDataStreamExportRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest.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();
name_ = "";
registryId_ = "";
mqttTopicFilter_ = "";
database_ = "";
stream_ = "";
serviceAccountId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDataStreamExportRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest(this);
result.name_ = name_;
result.registryId_ = registryId_;
result.mqttTopicFilter_ = mqttTopicFilter_;
result.database_ = database_;
result.stream_ = stream_;
result.serviceAccountId_ = serviceAccountId_;
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.RegistryServiceOuterClass.AddDataStreamExportRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest.getDefaultInstance()) return this;
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();
}
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.RegistryServiceOuterClass.AddDataStreamExportRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name of the YDS export. The name must be unique within the folder.
*
*
* string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the YDS export. The name must be unique within the folder.
*
*
* string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the YDS export. The name must be unique within the folder.
*
*
* string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the YDS export. The name must be unique within the folder.
*
*
* string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the YDS export. The name must be unique within the folder.
*
*
* string name = 1 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=50"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry to add a YDS export for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the registry to add a YDS export for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the registry to add a YDS export for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of the registry to add a YDS export for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry to add a YDS export for.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
private java.lang.Object mqttTopicFilter_ = "";
/**
*
* MQTT topic whose messages export to YDS.
*
*
* string mqtt_topic_filter = 4 [(.yandex.cloud.length) = "<=1024"];
* @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 [(.yandex.cloud.length) = "<=1024"];
* @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 [(.yandex.cloud.length) = "<=1024"];
* @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 [(.yandex.cloud.length) = "<=1024"];
* @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 [(.yandex.cloud.length) = "<=1024"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @return This builder for chaining.
*/
public Builder clearDatabase() {
database_ = getDefaultInstance().getDatabase();
onChanged();
return this;
}
/**
*
* YDS database.
*
*
* string database = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @return This builder for chaining.
*/
public Builder clearStream() {
stream_ = getDefaultInstance().getStream();
onChanged();
return this;
}
/**
*
* YDS stream name.
*
*
* string stream = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=512"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @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;
}
@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.AddDataStreamExportRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.AddDataStreamExportRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddDataStreamExportRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddDataStreamExportRequest(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.RegistryServiceOuterClass.AddDataStreamExportRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddDataStreamExportMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.AddDataStreamExportMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry for which the YDS export was added.
*
*
* string registry_id = 1;
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry for which the YDS export was added.
*
*
* string registry_id = 1;
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* ID of the added YDS export.
*
*
* string data_stream_export_id = 2;
* @return The dataStreamExportId.
*/
java.lang.String getDataStreamExportId();
/**
*
* ID of the added YDS export.
*
*
* string data_stream_export_id = 2;
* @return The bytes for dataStreamExportId.
*/
com.google.protobuf.ByteString
getDataStreamExportIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.AddDataStreamExportMetadata}
*/
public static final class AddDataStreamExportMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.AddDataStreamExportMetadata)
AddDataStreamExportMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use AddDataStreamExportMetadata.newBuilder() to construct.
private AddDataStreamExportMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AddDataStreamExportMetadata() {
registryId_ = "";
dataStreamExportId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AddDataStreamExportMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AddDataStreamExportMetadata(
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();
dataStreamExportId_ = 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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDataStreamExportMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDataStreamExportMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry for which the YDS export was added.
*
*
* 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 for which the YDS export was added.
*
*
* 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 DATA_STREAM_EXPORT_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object dataStreamExportId_;
/**
*
* ID of the added YDS export.
*
*
* string data_stream_export_id = 2;
* @return The dataStreamExportId.
*/
@java.lang.Override
public java.lang.String getDataStreamExportId() {
java.lang.Object ref = dataStreamExportId_;
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();
dataStreamExportId_ = s;
return s;
}
}
/**
*
* ID of the added YDS export.
*
*
* string data_stream_export_id = 2;
* @return The bytes for dataStreamExportId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDataStreamExportIdBytes() {
java.lang.Object ref = dataStreamExportId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataStreamExportId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataStreamExportId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataStreamExportId_);
}
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(dataStreamExportId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataStreamExportId_);
}
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.RegistryServiceOuterClass.AddDataStreamExportMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) return false;
if (!getDataStreamExportId()
.equals(other.getDataStreamExportId())) 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) + DATA_STREAM_EXPORT_ID_FIELD_NUMBER;
hash = (53 * hash) + getDataStreamExportId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata 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.RegistryServiceOuterClass.AddDataStreamExportMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata 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.RegistryServiceOuterClass.AddDataStreamExportMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata 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.RegistryServiceOuterClass.AddDataStreamExportMetadata 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.RegistryServiceOuterClass.AddDataStreamExportMetadata 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.RegistryServiceOuterClass.AddDataStreamExportMetadata 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.RegistryServiceOuterClass.AddDataStreamExportMetadata 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.RegistryServiceOuterClass.AddDataStreamExportMetadata 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.RegistryServiceOuterClass.AddDataStreamExportMetadata 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.RegistryServiceOuterClass.AddDataStreamExportMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.AddDataStreamExportMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.AddDataStreamExportMetadata)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDataStreamExportMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDataStreamExportMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata.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_ = "";
dataStreamExportId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_AddDataStreamExportMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata(this);
result.registryId_ = registryId_;
result.dataStreamExportId_ = dataStreamExportId_;
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.RegistryServiceOuterClass.AddDataStreamExportMetadata) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
onChanged();
}
if (!other.getDataStreamExportId().isEmpty()) {
dataStreamExportId_ = other.dataStreamExportId_;
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.RegistryServiceOuterClass.AddDataStreamExportMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry for which the YDS export was added.
*
*
* 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 for which the YDS export was added.
*
*
* 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 for which the YDS export was added.
*
*
* 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 for which the YDS export was added.
*
*
* string registry_id = 1;
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry for which the YDS export was added.
*
*
* 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 dataStreamExportId_ = "";
/**
*
* ID of the added YDS export.
*
*
* string data_stream_export_id = 2;
* @return The dataStreamExportId.
*/
public java.lang.String getDataStreamExportId() {
java.lang.Object ref = dataStreamExportId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dataStreamExportId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the added YDS export.
*
*
* string data_stream_export_id = 2;
* @return The bytes for dataStreamExportId.
*/
public com.google.protobuf.ByteString
getDataStreamExportIdBytes() {
java.lang.Object ref = dataStreamExportId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataStreamExportId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the added YDS export.
*
*
* string data_stream_export_id = 2;
* @param value The dataStreamExportId to set.
* @return This builder for chaining.
*/
public Builder setDataStreamExportId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dataStreamExportId_ = value;
onChanged();
return this;
}
/**
*
* ID of the added YDS export.
*
*
* string data_stream_export_id = 2;
* @return This builder for chaining.
*/
public Builder clearDataStreamExportId() {
dataStreamExportId_ = getDefaultInstance().getDataStreamExportId();
onChanged();
return this;
}
/**
*
* ID of the added YDS export.
*
*
* string data_stream_export_id = 2;
* @param value The bytes for dataStreamExportId to set.
* @return This builder for chaining.
*/
public Builder setDataStreamExportIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dataStreamExportId_ = 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.AddDataStreamExportMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.AddDataStreamExportMetadata)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.AddDataStreamExportMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AddDataStreamExportMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AddDataStreamExportMetadata(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.RegistryServiceOuterClass.AddDataStreamExportMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteDataStreamExportRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeleteDataStreamExportRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of a registry for which the YDS export is being deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of a registry for which the YDS export is being deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* ID of the YDS export to delete.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The dataStreamExportId.
*/
java.lang.String getDataStreamExportId();
/**
*
* ID of the YDS export to delete.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for dataStreamExportId.
*/
com.google.protobuf.ByteString
getDataStreamExportIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteDataStreamExportRequest}
*/
public static final class DeleteDataStreamExportRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeleteDataStreamExportRequest)
DeleteDataStreamExportRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteDataStreamExportRequest.newBuilder() to construct.
private DeleteDataStreamExportRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteDataStreamExportRequest() {
registryId_ = "";
dataStreamExportId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteDataStreamExportRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteDataStreamExportRequest(
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();
dataStreamExportId_ = 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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDataStreamExportRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDataStreamExportRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of a registry for which the YDS export is being deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of a registry for which the YDS export is being deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_STREAM_EXPORT_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object dataStreamExportId_;
/**
*
* ID of the YDS export to delete.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The dataStreamExportId.
*/
@java.lang.Override
public java.lang.String getDataStreamExportId() {
java.lang.Object ref = dataStreamExportId_;
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();
dataStreamExportId_ = s;
return s;
}
}
/**
*
* ID of the YDS export to delete.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for dataStreamExportId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDataStreamExportIdBytes() {
java.lang.Object ref = dataStreamExportId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataStreamExportId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataStreamExportId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataStreamExportId_);
}
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(dataStreamExportId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataStreamExportId_);
}
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.RegistryServiceOuterClass.DeleteDataStreamExportRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) return false;
if (!getDataStreamExportId()
.equals(other.getDataStreamExportId())) 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) + DATA_STREAM_EXPORT_ID_FIELD_NUMBER;
hash = (53 * hash) + getDataStreamExportId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest 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.RegistryServiceOuterClass.DeleteDataStreamExportRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest 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.RegistryServiceOuterClass.DeleteDataStreamExportRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest 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.RegistryServiceOuterClass.DeleteDataStreamExportRequest 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.RegistryServiceOuterClass.DeleteDataStreamExportRequest 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.RegistryServiceOuterClass.DeleteDataStreamExportRequest 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.RegistryServiceOuterClass.DeleteDataStreamExportRequest 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.RegistryServiceOuterClass.DeleteDataStreamExportRequest 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.RegistryServiceOuterClass.DeleteDataStreamExportRequest 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.RegistryServiceOuterClass.DeleteDataStreamExportRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteDataStreamExportRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeleteDataStreamExportRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDataStreamExportRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDataStreamExportRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest.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_ = "";
dataStreamExportId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDataStreamExportRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest(this);
result.registryId_ = registryId_;
result.dataStreamExportId_ = dataStreamExportId_;
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.RegistryServiceOuterClass.DeleteDataStreamExportRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
onChanged();
}
if (!other.getDataStreamExportId().isEmpty()) {
dataStreamExportId_ = other.dataStreamExportId_;
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.RegistryServiceOuterClass.DeleteDataStreamExportRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of a registry for which the YDS export is being deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of a registry for which the YDS export is being deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of a registry for which the YDS export is being deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of a registry for which the YDS export is being deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of a registry for which the YDS export is being deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
private java.lang.Object dataStreamExportId_ = "";
/**
*
* ID of the YDS export to delete.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The dataStreamExportId.
*/
public java.lang.String getDataStreamExportId() {
java.lang.Object ref = dataStreamExportId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dataStreamExportId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the YDS export to delete.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for dataStreamExportId.
*/
public com.google.protobuf.ByteString
getDataStreamExportIdBytes() {
java.lang.Object ref = dataStreamExportId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataStreamExportId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the YDS export to delete.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The dataStreamExportId to set.
* @return This builder for chaining.
*/
public Builder setDataStreamExportId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dataStreamExportId_ = value;
onChanged();
return this;
}
/**
*
* ID of the YDS export to delete.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearDataStreamExportId() {
dataStreamExportId_ = getDefaultInstance().getDataStreamExportId();
onChanged();
return this;
}
/**
*
* ID of the YDS export to delete.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for dataStreamExportId to set.
* @return This builder for chaining.
*/
public Builder setDataStreamExportIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dataStreamExportId_ = 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.DeleteDataStreamExportRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeleteDataStreamExportRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteDataStreamExportRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteDataStreamExportRequest(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.RegistryServiceOuterClass.DeleteDataStreamExportRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteDataStreamExportMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.DeleteDataStreamExportMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of a registry for which the YDS export was deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of a registry for which the YDS export was deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
/**
*
* ID of the deleted YDS export.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true];
* @return The dataStreamExportId.
*/
java.lang.String getDataStreamExportId();
/**
*
* ID of the deleted YDS export.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true];
* @return The bytes for dataStreamExportId.
*/
com.google.protobuf.ByteString
getDataStreamExportIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteDataStreamExportMetadata}
*/
public static final class DeleteDataStreamExportMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.DeleteDataStreamExportMetadata)
DeleteDataStreamExportMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteDataStreamExportMetadata.newBuilder() to construct.
private DeleteDataStreamExportMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteDataStreamExportMetadata() {
registryId_ = "";
dataStreamExportId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteDataStreamExportMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteDataStreamExportMetadata(
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();
dataStreamExportId_ = 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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDataStreamExportMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDataStreamExportMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of a registry for which the YDS export was deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @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 a registry for which the YDS export was deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @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 DATA_STREAM_EXPORT_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object dataStreamExportId_;
/**
*
* ID of the deleted YDS export.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true];
* @return The dataStreamExportId.
*/
@java.lang.Override
public java.lang.String getDataStreamExportId() {
java.lang.Object ref = dataStreamExportId_;
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();
dataStreamExportId_ = s;
return s;
}
}
/**
*
* ID of the deleted YDS export.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true];
* @return The bytes for dataStreamExportId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDataStreamExportIdBytes() {
java.lang.Object ref = dataStreamExportId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataStreamExportId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registryId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, registryId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataStreamExportId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataStreamExportId_);
}
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(dataStreamExportId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataStreamExportId_);
}
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.RegistryServiceOuterClass.DeleteDataStreamExportMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) return false;
if (!getDataStreamExportId()
.equals(other.getDataStreamExportId())) 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) + DATA_STREAM_EXPORT_ID_FIELD_NUMBER;
hash = (53 * hash) + getDataStreamExportId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata 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.RegistryServiceOuterClass.DeleteDataStreamExportMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata 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.RegistryServiceOuterClass.DeleteDataStreamExportMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata 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.RegistryServiceOuterClass.DeleteDataStreamExportMetadata 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.RegistryServiceOuterClass.DeleteDataStreamExportMetadata 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.RegistryServiceOuterClass.DeleteDataStreamExportMetadata 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.RegistryServiceOuterClass.DeleteDataStreamExportMetadata 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.RegistryServiceOuterClass.DeleteDataStreamExportMetadata 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.RegistryServiceOuterClass.DeleteDataStreamExportMetadata 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.RegistryServiceOuterClass.DeleteDataStreamExportMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.DeleteDataStreamExportMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.DeleteDataStreamExportMetadata)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDataStreamExportMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDataStreamExportMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata.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_ = "";
dataStreamExportId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_DeleteDataStreamExportMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata(this);
result.registryId_ = registryId_;
result.dataStreamExportId_ = dataStreamExportId_;
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.RegistryServiceOuterClass.DeleteDataStreamExportMetadata) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
onChanged();
}
if (!other.getDataStreamExportId().isEmpty()) {
dataStreamExportId_ = other.dataStreamExportId_;
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.RegistryServiceOuterClass.DeleteDataStreamExportMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of a registry for which the YDS export was deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @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 a registry for which the YDS export was deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @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 a registry for which the YDS export was deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @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 a registry for which the YDS export was deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of a registry for which the YDS export was deleted.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true];
* @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 dataStreamExportId_ = "";
/**
*
* ID of the deleted YDS export.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true];
* @return The dataStreamExportId.
*/
public java.lang.String getDataStreamExportId() {
java.lang.Object ref = dataStreamExportId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dataStreamExportId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the deleted YDS export.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true];
* @return The bytes for dataStreamExportId.
*/
public com.google.protobuf.ByteString
getDataStreamExportIdBytes() {
java.lang.Object ref = dataStreamExportId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
dataStreamExportId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the deleted YDS export.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true];
* @param value The dataStreamExportId to set.
* @return This builder for chaining.
*/
public Builder setDataStreamExportId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dataStreamExportId_ = value;
onChanged();
return this;
}
/**
*
* ID of the deleted YDS export.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearDataStreamExportId() {
dataStreamExportId_ = getDefaultInstance().getDataStreamExportId();
onChanged();
return this;
}
/**
*
* ID of the deleted YDS export.
*
*
* string data_stream_export_id = 2 [(.yandex.cloud.required) = true];
* @param value The bytes for dataStreamExportId to set.
* @return This builder for chaining.
*/
public Builder setDataStreamExportIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dataStreamExportId_ = 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.DeleteDataStreamExportMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.DeleteDataStreamExportMetadata)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.DeleteDataStreamExportMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteDataStreamExportMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteDataStreamExportMetadata(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.RegistryServiceOuterClass.DeleteDataStreamExportMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDataStreamExportsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListDataStreamExportsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the registry to list YDS exports in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
java.lang.String getRegistryId();
/**
*
* ID of the registry to list YDS exports in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
com.google.protobuf.ByteString
getRegistryIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListDataStreamExportsRequest}
*/
public static final class ListDataStreamExportsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListDataStreamExportsRequest)
ListDataStreamExportsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDataStreamExportsRequest.newBuilder() to construct.
private ListDataStreamExportsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDataStreamExportsRequest() {
registryId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDataStreamExportsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDataStreamExportsRequest(
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;
}
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.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDataStreamExportsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDataStreamExportsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest.Builder.class);
}
public static final int REGISTRY_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object registryId_;
/**
*
* ID of the registry to list YDS exports in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
@java.lang.Override
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
}
}
/**
*
* ID of the registry to list YDS exports in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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_);
}
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_);
}
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.RegistryServiceOuterClass.ListDataStreamExportsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest other = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest) obj;
if (!getRegistryId()
.equals(other.getRegistryId())) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest 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.RegistryServiceOuterClass.ListDataStreamExportsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest 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.RegistryServiceOuterClass.ListDataStreamExportsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest 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.RegistryServiceOuterClass.ListDataStreamExportsRequest 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.RegistryServiceOuterClass.ListDataStreamExportsRequest 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.RegistryServiceOuterClass.ListDataStreamExportsRequest 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.RegistryServiceOuterClass.ListDataStreamExportsRequest 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.RegistryServiceOuterClass.ListDataStreamExportsRequest 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.RegistryServiceOuterClass.ListDataStreamExportsRequest 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.RegistryServiceOuterClass.ListDataStreamExportsRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListDataStreamExportsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.iot.devices.v1.ListDataStreamExportsRequest)
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDataStreamExportsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDataStreamExportsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest.Builder.class);
}
// Construct using yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest.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_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDataStreamExportsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest getDefaultInstanceForType() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest build() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest buildPartial() {
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest result = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest(this);
result.registryId_ = registryId_;
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.RegistryServiceOuterClass.ListDataStreamExportsRequest) {
return mergeFrom((yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest other) {
if (other == yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest.getDefaultInstance()) return this;
if (!other.getRegistryId().isEmpty()) {
registryId_ = other.registryId_;
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.RegistryServiceOuterClass.ListDataStreamExportsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object registryId_ = "";
/**
*
* ID of the registry to list YDS exports in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The registryId.
*/
public java.lang.String getRegistryId() {
java.lang.Object ref = registryId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
registryId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the registry to list YDS exports in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for registryId.
*/
public com.google.protobuf.ByteString
getRegistryIdBytes() {
java.lang.Object ref = registryId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
registryId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the registry to list YDS exports in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
registryId_ = value;
onChanged();
return this;
}
/**
*
* ID of the registry to list YDS exports in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearRegistryId() {
registryId_ = getDefaultInstance().getRegistryId();
onChanged();
return this;
}
/**
*
* ID of the registry to list YDS exports in.
* To get a registry ID make a [RegistryService.List] request.
*
*
* string registry_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for registryId to set.
* @return This builder for chaining.
*/
public Builder setRegistryIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
registryId_ = value;
onChanged();
return this;
}
@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.ListDataStreamExportsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.iot.devices.v1.ListDataStreamExportsRequest)
private static final yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest();
}
public static yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDataStreamExportsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDataStreamExportsRequest(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.RegistryServiceOuterClass.ListDataStreamExportsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDataStreamExportsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.iot.devices.v1.ListDataStreamExportsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of YDS exports for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DataStreamExport data_stream_exports = 1;
*/
java.util.List
getDataStreamExportsList();
/**
*
* List of YDS exports for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DataStreamExport data_stream_exports = 1;
*/
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport getDataStreamExports(int index);
/**
*
* List of YDS exports for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DataStreamExport data_stream_exports = 1;
*/
int getDataStreamExportsCount();
/**
*
* List of YDS exports for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DataStreamExport data_stream_exports = 1;
*/
java.util.List extends yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExportOrBuilder>
getDataStreamExportsOrBuilderList();
/**
*
* List of YDS exports for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DataStreamExport data_stream_exports = 1;
*/
yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExportOrBuilder getDataStreamExportsOrBuilder(
int index);
}
/**
* Protobuf type {@code yandex.cloud.iot.devices.v1.ListDataStreamExportsResponse}
*/
public static final class ListDataStreamExportsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.iot.devices.v1.ListDataStreamExportsResponse)
ListDataStreamExportsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDataStreamExportsResponse.newBuilder() to construct.
private ListDataStreamExportsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDataStreamExportsResponse() {
dataStreamExports_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDataStreamExportsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDataStreamExportsResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
dataStreamExports_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
dataStreamExports_.add(
input.readMessage(yandex.cloud.api.iot.devices.v1.RegistryOuterClass.DataStreamExport.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
dataStreamExports_ = java.util.Collections.unmodifiableList(dataStreamExports_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDataStreamExportsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.internal_static_yandex_cloud_iot_devices_v1_ListDataStreamExportsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsResponse.class, yandex.cloud.api.iot.devices.v1.RegistryServiceOuterClass.ListDataStreamExportsResponse.Builder.class);
}
public static final int DATA_STREAM_EXPORTS_FIELD_NUMBER = 1;
private java.util.List dataStreamExports_;
/**
*
* List of YDS exports for the specified registry.
*
*
* repeated .yandex.cloud.iot.devices.v1.DataStreamExport data_stream_exports = 1;
*/
@java.lang.Override
public java.util.List getDataStreamExportsList() {
return dataStreamExports_;
}
/**
*