istio.v1.auth.IstioCertificateResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dubbo Show documentation
Show all versions of dubbo Show documentation
The all in one project of dubbo
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ca.proto
package istio.v1.auth;
/**
*
* Certificate response message.
*
*
* Protobuf type {@code istio.v1.auth.IstioCertificateResponse}
*/
public final class IstioCertificateResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:istio.v1.auth.IstioCertificateResponse)
IstioCertificateResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use IstioCertificateResponse.newBuilder() to construct.
private IstioCertificateResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IstioCertificateResponse() {
certChain_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IstioCertificateResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return istio.v1.auth.Ca.internal_static_istio_v1_auth_IstioCertificateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return istio.v1.auth.Ca.internal_static_istio_v1_auth_IstioCertificateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
istio.v1.auth.IstioCertificateResponse.class, istio.v1.auth.IstioCertificateResponse.Builder.class);
}
public static final int CERT_CHAIN_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList certChain_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* PEM-encoded certificate chain.
* The leaf cert is the first element, and the root cert is the last element.
*
*
* repeated string cert_chain = 1;
* @return A list containing the certChain.
*/
public com.google.protobuf.ProtocolStringList
getCertChainList() {
return certChain_;
}
/**
*
* PEM-encoded certificate chain.
* The leaf cert is the first element, and the root cert is the last element.
*
*
* repeated string cert_chain = 1;
* @return The count of certChain.
*/
public int getCertChainCount() {
return certChain_.size();
}
/**
*
* PEM-encoded certificate chain.
* The leaf cert is the first element, and the root cert is the last element.
*
*
* repeated string cert_chain = 1;
* @param index The index of the element to return.
* @return The certChain at the given index.
*/
public java.lang.String getCertChain(int index) {
return certChain_.get(index);
}
/**
*
* PEM-encoded certificate chain.
* The leaf cert is the first element, and the root cert is the last element.
*
*
* repeated string cert_chain = 1;
* @param index The index of the value to return.
* @return The bytes of the certChain at the given index.
*/
public com.google.protobuf.ByteString
getCertChainBytes(int index) {
return certChain_.getByteString(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 < certChain_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, certChain_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < certChain_.size(); i++) {
dataSize += computeStringSizeNoTag(certChain_.getRaw(i));
}
size += dataSize;
size += 1 * getCertChainList().size();
}
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 istio.v1.auth.IstioCertificateResponse)) {
return super.equals(obj);
}
istio.v1.auth.IstioCertificateResponse other = (istio.v1.auth.IstioCertificateResponse) obj;
if (!getCertChainList()
.equals(other.getCertChainList())) 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();
if (getCertChainCount() > 0) {
hash = (37 * hash) + CERT_CHAIN_FIELD_NUMBER;
hash = (53 * hash) + getCertChainList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static istio.v1.auth.IstioCertificateResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.v1.auth.IstioCertificateResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.v1.auth.IstioCertificateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.v1.auth.IstioCertificateResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.v1.auth.IstioCertificateResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static istio.v1.auth.IstioCertificateResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static istio.v1.auth.IstioCertificateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static istio.v1.auth.IstioCertificateResponse 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 istio.v1.auth.IstioCertificateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static istio.v1.auth.IstioCertificateResponse 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 istio.v1.auth.IstioCertificateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static istio.v1.auth.IstioCertificateResponse 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(istio.v1.auth.IstioCertificateResponse 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;
}
/**
*
* Certificate response message.
*
*
* Protobuf type {@code istio.v1.auth.IstioCertificateResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:istio.v1.auth.IstioCertificateResponse)
istio.v1.auth.IstioCertificateResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return istio.v1.auth.Ca.internal_static_istio_v1_auth_IstioCertificateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return istio.v1.auth.Ca.internal_static_istio_v1_auth_IstioCertificateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
istio.v1.auth.IstioCertificateResponse.class, istio.v1.auth.IstioCertificateResponse.Builder.class);
}
// Construct using istio.v1.auth.IstioCertificateResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
certChain_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return istio.v1.auth.Ca.internal_static_istio_v1_auth_IstioCertificateResponse_descriptor;
}
@java.lang.Override
public istio.v1.auth.IstioCertificateResponse getDefaultInstanceForType() {
return istio.v1.auth.IstioCertificateResponse.getDefaultInstance();
}
@java.lang.Override
public istio.v1.auth.IstioCertificateResponse build() {
istio.v1.auth.IstioCertificateResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public istio.v1.auth.IstioCertificateResponse buildPartial() {
istio.v1.auth.IstioCertificateResponse result = new istio.v1.auth.IstioCertificateResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(istio.v1.auth.IstioCertificateResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
certChain_.makeImmutable();
result.certChain_ = certChain_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof istio.v1.auth.IstioCertificateResponse) {
return mergeFrom((istio.v1.auth.IstioCertificateResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(istio.v1.auth.IstioCertificateResponse other) {
if (other == istio.v1.auth.IstioCertificateResponse.getDefaultInstance()) return this;
if (!other.certChain_.isEmpty()) {
if (certChain_.isEmpty()) {
certChain_ = other.certChain_;
bitField0_ |= 0x00000001;
} else {
ensureCertChainIsMutable();
certChain_.addAll(other.certChain_);
}
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: {
java.lang.String s = input.readStringRequireUtf8();
ensureCertChainIsMutable();
certChain_.add(s);
break;
} // case 10
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 com.google.protobuf.LazyStringArrayList certChain_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureCertChainIsMutable() {
if (!certChain_.isModifiable()) {
certChain_ = new com.google.protobuf.LazyStringArrayList(certChain_);
}
bitField0_ |= 0x00000001;
}
/**
*
* PEM-encoded certificate chain.
* The leaf cert is the first element, and the root cert is the last element.
*
*
* repeated string cert_chain = 1;
* @return A list containing the certChain.
*/
public com.google.protobuf.ProtocolStringList
getCertChainList() {
certChain_.makeImmutable();
return certChain_;
}
/**
*
* PEM-encoded certificate chain.
* The leaf cert is the first element, and the root cert is the last element.
*
*
* repeated string cert_chain = 1;
* @return The count of certChain.
*/
public int getCertChainCount() {
return certChain_.size();
}
/**
*
* PEM-encoded certificate chain.
* The leaf cert is the first element, and the root cert is the last element.
*
*
* repeated string cert_chain = 1;
* @param index The index of the element to return.
* @return The certChain at the given index.
*/
public java.lang.String getCertChain(int index) {
return certChain_.get(index);
}
/**
*
* PEM-encoded certificate chain.
* The leaf cert is the first element, and the root cert is the last element.
*
*
* repeated string cert_chain = 1;
* @param index The index of the value to return.
* @return The bytes of the certChain at the given index.
*/
public com.google.protobuf.ByteString
getCertChainBytes(int index) {
return certChain_.getByteString(index);
}
/**
*
* PEM-encoded certificate chain.
* The leaf cert is the first element, and the root cert is the last element.
*
*
* repeated string cert_chain = 1;
* @param index The index to set the value at.
* @param value The certChain to set.
* @return This builder for chaining.
*/
public Builder setCertChain(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCertChainIsMutable();
certChain_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* PEM-encoded certificate chain.
* The leaf cert is the first element, and the root cert is the last element.
*
*
* repeated string cert_chain = 1;
* @param value The certChain to add.
* @return This builder for chaining.
*/
public Builder addCertChain(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCertChainIsMutable();
certChain_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* PEM-encoded certificate chain.
* The leaf cert is the first element, and the root cert is the last element.
*
*
* repeated string cert_chain = 1;
* @param values The certChain to add.
* @return This builder for chaining.
*/
public Builder addAllCertChain(
java.lang.Iterable values) {
ensureCertChainIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, certChain_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* PEM-encoded certificate chain.
* The leaf cert is the first element, and the root cert is the last element.
*
*
* repeated string cert_chain = 1;
* @return This builder for chaining.
*/
public Builder clearCertChain() {
certChain_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
*
* PEM-encoded certificate chain.
* The leaf cert is the first element, and the root cert is the last element.
*
*
* repeated string cert_chain = 1;
* @param value The bytes of the certChain to add.
* @return This builder for chaining.
*/
public Builder addCertChainBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureCertChainIsMutable();
certChain_.add(value);
bitField0_ |= 0x00000001;
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:istio.v1.auth.IstioCertificateResponse)
}
// @@protoc_insertion_point(class_scope:istio.v1.auth.IstioCertificateResponse)
private static final istio.v1.auth.IstioCertificateResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new istio.v1.auth.IstioCertificateResponse();
}
public static istio.v1.auth.IstioCertificateResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IstioCertificateResponse 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 istio.v1.auth.IstioCertificateResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}