com.scalar.dl.rpc.CertificateRegistrationRequest Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: scalar.proto
// Protobuf Java Version: 3.25.5
package com.scalar.dl.rpc;
/**
* Protobuf type {@code rpc.CertificateRegistrationRequest}
*/
public final class CertificateRegistrationRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:rpc.CertificateRegistrationRequest)
CertificateRegistrationRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CertificateRegistrationRequest.newBuilder() to construct.
private CertificateRegistrationRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CertificateRegistrationRequest() {
entityId_ = "";
certPem_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CertificateRegistrationRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.scalar.dl.rpc.ScalarProto.internal_static_rpc_CertificateRegistrationRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.scalar.dl.rpc.ScalarProto.internal_static_rpc_CertificateRegistrationRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.scalar.dl.rpc.CertificateRegistrationRequest.class, com.scalar.dl.rpc.CertificateRegistrationRequest.Builder.class);
}
public static final int ENTITY_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object entityId_ = "";
/**
* string entity_id = 1;
* @return The entityId.
*/
@java.lang.Override
public java.lang.String getEntityId() {
java.lang.Object ref = entityId_;
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();
entityId_ = s;
return s;
}
}
/**
* string entity_id = 1;
* @return The bytes for entityId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEntityIdBytes() {
java.lang.Object ref = entityId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
entityId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_VERSION_FIELD_NUMBER = 2;
private int keyVersion_ = 0;
/**
* uint32 key_version = 2;
* @return The keyVersion.
*/
@java.lang.Override
public int getKeyVersion() {
return keyVersion_;
}
public static final int CERT_PEM_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object certPem_ = "";
/**
* string cert_pem = 3;
* @return The certPem.
*/
@java.lang.Override
public java.lang.String getCertPem() {
java.lang.Object ref = certPem_;
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();
certPem_ = s;
return s;
}
}
/**
* string cert_pem = 3;
* @return The bytes for certPem.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCertPemBytes() {
java.lang.Object ref = certPem_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
certPem_ = 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(entityId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entityId_);
}
if (keyVersion_ != 0) {
output.writeUInt32(2, keyVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certPem_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, certPem_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entityId_);
}
if (keyVersion_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, keyVersion_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(certPem_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, certPem_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.scalar.dl.rpc.CertificateRegistrationRequest)) {
return super.equals(obj);
}
com.scalar.dl.rpc.CertificateRegistrationRequest other = (com.scalar.dl.rpc.CertificateRegistrationRequest) obj;
if (!getEntityId()
.equals(other.getEntityId())) return false;
if (getKeyVersion()
!= other.getKeyVersion()) return false;
if (!getCertPem()
.equals(other.getCertPem())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ENTITY_ID_FIELD_NUMBER;
hash = (53 * hash) + getEntityId().hashCode();
hash = (37 * hash) + KEY_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getKeyVersion();
hash = (37 * hash) + CERT_PEM_FIELD_NUMBER;
hash = (53 * hash) + getCertPem().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.scalar.dl.rpc.CertificateRegistrationRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.dl.rpc.CertificateRegistrationRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.dl.rpc.CertificateRegistrationRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.dl.rpc.CertificateRegistrationRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.dl.rpc.CertificateRegistrationRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.scalar.dl.rpc.CertificateRegistrationRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.scalar.dl.rpc.CertificateRegistrationRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.scalar.dl.rpc.CertificateRegistrationRequest 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 com.scalar.dl.rpc.CertificateRegistrationRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.scalar.dl.rpc.CertificateRegistrationRequest 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 com.scalar.dl.rpc.CertificateRegistrationRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.scalar.dl.rpc.CertificateRegistrationRequest 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(com.scalar.dl.rpc.CertificateRegistrationRequest 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 rpc.CertificateRegistrationRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:rpc.CertificateRegistrationRequest)
com.scalar.dl.rpc.CertificateRegistrationRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.scalar.dl.rpc.ScalarProto.internal_static_rpc_CertificateRegistrationRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.scalar.dl.rpc.ScalarProto.internal_static_rpc_CertificateRegistrationRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.scalar.dl.rpc.CertificateRegistrationRequest.class, com.scalar.dl.rpc.CertificateRegistrationRequest.Builder.class);
}
// Construct using com.scalar.dl.rpc.CertificateRegistrationRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
entityId_ = "";
keyVersion_ = 0;
certPem_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.scalar.dl.rpc.ScalarProto.internal_static_rpc_CertificateRegistrationRequest_descriptor;
}
@java.lang.Override
public com.scalar.dl.rpc.CertificateRegistrationRequest getDefaultInstanceForType() {
return com.scalar.dl.rpc.CertificateRegistrationRequest.getDefaultInstance();
}
@java.lang.Override
public com.scalar.dl.rpc.CertificateRegistrationRequest build() {
com.scalar.dl.rpc.CertificateRegistrationRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.scalar.dl.rpc.CertificateRegistrationRequest buildPartial() {
com.scalar.dl.rpc.CertificateRegistrationRequest result = new com.scalar.dl.rpc.CertificateRegistrationRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.scalar.dl.rpc.CertificateRegistrationRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.entityId_ = entityId_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.keyVersion_ = keyVersion_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.certPem_ = certPem_;
}
}
@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 com.scalar.dl.rpc.CertificateRegistrationRequest) {
return mergeFrom((com.scalar.dl.rpc.CertificateRegistrationRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.scalar.dl.rpc.CertificateRegistrationRequest other) {
if (other == com.scalar.dl.rpc.CertificateRegistrationRequest.getDefaultInstance()) return this;
if (!other.getEntityId().isEmpty()) {
entityId_ = other.entityId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getKeyVersion() != 0) {
setKeyVersion(other.getKeyVersion());
}
if (!other.getCertPem().isEmpty()) {
certPem_ = other.certPem_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
entityId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
keyVersion_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
certPem_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object entityId_ = "";
/**
* string entity_id = 1;
* @return The entityId.
*/
public java.lang.String getEntityId() {
java.lang.Object ref = entityId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
entityId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string entity_id = 1;
* @return The bytes for entityId.
*/
public com.google.protobuf.ByteString
getEntityIdBytes() {
java.lang.Object ref = entityId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
entityId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string entity_id = 1;
* @param value The entityId to set.
* @return This builder for chaining.
*/
public Builder setEntityId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
entityId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string entity_id = 1;
* @return This builder for chaining.
*/
public Builder clearEntityId() {
entityId_ = getDefaultInstance().getEntityId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string entity_id = 1;
* @param value The bytes for entityId to set.
* @return This builder for chaining.
*/
public Builder setEntityIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
entityId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int keyVersion_ ;
/**
* uint32 key_version = 2;
* @return The keyVersion.
*/
@java.lang.Override
public int getKeyVersion() {
return keyVersion_;
}
/**
* uint32 key_version = 2;
* @param value The keyVersion to set.
* @return This builder for chaining.
*/
public Builder setKeyVersion(int value) {
keyVersion_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* uint32 key_version = 2;
* @return This builder for chaining.
*/
public Builder clearKeyVersion() {
bitField0_ = (bitField0_ & ~0x00000002);
keyVersion_ = 0;
onChanged();
return this;
}
private java.lang.Object certPem_ = "";
/**
* string cert_pem = 3;
* @return The certPem.
*/
public java.lang.String getCertPem() {
java.lang.Object ref = certPem_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
certPem_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string cert_pem = 3;
* @return The bytes for certPem.
*/
public com.google.protobuf.ByteString
getCertPemBytes() {
java.lang.Object ref = certPem_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
certPem_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string cert_pem = 3;
* @param value The certPem to set.
* @return This builder for chaining.
*/
public Builder setCertPem(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
certPem_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string cert_pem = 3;
* @return This builder for chaining.
*/
public Builder clearCertPem() {
certPem_ = getDefaultInstance().getCertPem();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string cert_pem = 3;
* @param value The bytes for certPem to set.
* @return This builder for chaining.
*/
public Builder setCertPemBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
certPem_ = value;
bitField0_ |= 0x00000004;
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:rpc.CertificateRegistrationRequest)
}
// @@protoc_insertion_point(class_scope:rpc.CertificateRegistrationRequest)
private static final com.scalar.dl.rpc.CertificateRegistrationRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.scalar.dl.rpc.CertificateRegistrationRequest();
}
public static com.scalar.dl.rpc.CertificateRegistrationRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CertificateRegistrationRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.scalar.dl.rpc.CertificateRegistrationRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy