com.google.cloud.datastream.v1.MysqlSslConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-datastream-v1 Show documentation
Show all versions of proto-google-cloud-datastream-v1 Show documentation
Proto library for google-cloud-datastream
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/datastream/v1/datastream_resources.proto
package com.google.cloud.datastream.v1;
/**
*
*
*
* MySQL SSL configuration information.
*
*
* Protobuf type {@code google.cloud.datastream.v1.MysqlSslConfig}
*/
public final class MysqlSslConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlSslConfig)
MysqlSslConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use MysqlSslConfig.newBuilder() to construct.
private MysqlSslConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MysqlSslConfig() {
clientKey_ = "";
clientCertificate_ = "";
caCertificate_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new MysqlSslConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private MysqlSslConfig(
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();
clientKey_ = s;
break;
}
case 16:
{
clientKeySet_ = input.readBool();
break;
}
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
clientCertificate_ = s;
break;
}
case 32:
{
clientCertificateSet_ = input.readBool();
break;
}
case 42:
{
java.lang.String s = input.readStringRequireUtf8();
caCertificate_ = s;
break;
}
case 48:
{
caCertificateSet_ = input.readBool();
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 com.google.cloud.datastream.v1.DatastreamResourcesProto
.internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.datastream.v1.DatastreamResourcesProto
.internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.datastream.v1.MysqlSslConfig.class,
com.google.cloud.datastream.v1.MysqlSslConfig.Builder.class);
}
public static final int CLIENT_KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object clientKey_;
/**
*
*
*
* Input only. PEM-encoded private key associated with the Client Certificate.
* If this field is used then the 'client_certificate' and the
* 'ca_certificate' fields are mandatory.
*
*
* string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return The clientKey.
*/
@java.lang.Override
public java.lang.String getClientKey() {
java.lang.Object ref = clientKey_;
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();
clientKey_ = s;
return s;
}
}
/**
*
*
*
* Input only. PEM-encoded private key associated with the Client Certificate.
* If this field is used then the 'client_certificate' and the
* 'ca_certificate' fields are mandatory.
*
*
* string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return The bytes for clientKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getClientKeyBytes() {
java.lang.Object ref = clientKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
clientKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_KEY_SET_FIELD_NUMBER = 2;
private boolean clientKeySet_;
/**
*
*
*
* Output only. Indicates whether the client_key field is set.
*
*
* bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The clientKeySet.
*/
@java.lang.Override
public boolean getClientKeySet() {
return clientKeySet_;
}
public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 3;
private volatile java.lang.Object clientCertificate_;
/**
*
*
*
* Input only. PEM-encoded certificate that will be used by the replica to
* authenticate against the source database server. If this field is used
* then the 'client_key' and the 'ca_certificate' fields are mandatory.
*
*
* string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return The clientCertificate.
*/
@java.lang.Override
public java.lang.String getClientCertificate() {
java.lang.Object ref = clientCertificate_;
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();
clientCertificate_ = s;
return s;
}
}
/**
*
*
*
* Input only. PEM-encoded certificate that will be used by the replica to
* authenticate against the source database server. If this field is used
* then the 'client_key' and the 'ca_certificate' fields are mandatory.
*
*
* string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return The bytes for clientCertificate.
*/
@java.lang.Override
public com.google.protobuf.ByteString getClientCertificateBytes() {
java.lang.Object ref = clientCertificate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
clientCertificate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_CERTIFICATE_SET_FIELD_NUMBER = 4;
private boolean clientCertificateSet_;
/**
*
*
*
* Output only. Indicates whether the client_certificate field is set.
*
*
* bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The clientCertificateSet.
*/
@java.lang.Override
public boolean getClientCertificateSet() {
return clientCertificateSet_;
}
public static final int CA_CERTIFICATE_FIELD_NUMBER = 5;
private volatile java.lang.Object caCertificate_;
/**
*
*
*
* Input only. PEM-encoded certificate of the CA that signed the source
* database server's certificate.
*
*
* string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return The caCertificate.
*/
@java.lang.Override
public java.lang.String getCaCertificate() {
java.lang.Object ref = caCertificate_;
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();
caCertificate_ = s;
return s;
}
}
/**
*
*
*
* Input only. PEM-encoded certificate of the CA that signed the source
* database server's certificate.
*
*
* string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return The bytes for caCertificate.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCaCertificateBytes() {
java.lang.Object ref = caCertificate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
caCertificate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CA_CERTIFICATE_SET_FIELD_NUMBER = 6;
private boolean caCertificateSet_;
/**
*
*
*
* Output only. Indicates whether the ca_certificate field is set.
*
*
* bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The caCertificateSet.
*/
@java.lang.Override
public boolean getCaCertificateSet() {
return caCertificateSet_;
}
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(clientKey_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientKey_);
}
if (clientKeySet_ != false) {
output.writeBool(2, clientKeySet_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clientCertificate_);
}
if (clientCertificateSet_ != false) {
output.writeBool(4, clientCertificateSet_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificate_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, caCertificate_);
}
if (caCertificateSet_ != false) {
output.writeBool(6, caCertificateSet_);
}
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(clientKey_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientKey_);
}
if (clientKeySet_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clientKeySet_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clientCertificate_);
}
if (clientCertificateSet_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, clientCertificateSet_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificate_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, caCertificate_);
}
if (caCertificateSet_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, caCertificateSet_);
}
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 com.google.cloud.datastream.v1.MysqlSslConfig)) {
return super.equals(obj);
}
com.google.cloud.datastream.v1.MysqlSslConfig other =
(com.google.cloud.datastream.v1.MysqlSslConfig) obj;
if (!getClientKey().equals(other.getClientKey())) return false;
if (getClientKeySet() != other.getClientKeySet()) return false;
if (!getClientCertificate().equals(other.getClientCertificate())) return false;
if (getClientCertificateSet() != other.getClientCertificateSet()) return false;
if (!getCaCertificate().equals(other.getCaCertificate())) return false;
if (getCaCertificateSet() != other.getCaCertificateSet()) 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) + CLIENT_KEY_FIELD_NUMBER;
hash = (53 * hash) + getClientKey().hashCode();
hash = (37 * hash) + CLIENT_KEY_SET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientKeySet());
hash = (37 * hash) + CLIENT_CERTIFICATE_FIELD_NUMBER;
hash = (53 * hash) + getClientCertificate().hashCode();
hash = (37 * hash) + CLIENT_CERTIFICATE_SET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientCertificateSet());
hash = (37 * hash) + CA_CERTIFICATE_FIELD_NUMBER;
hash = (53 * hash) + getCaCertificate().hashCode();
hash = (37 * hash) + CA_CERTIFICATE_SET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaCertificateSet());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.datastream.v1.MysqlSslConfig 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.google.cloud.datastream.v1.MysqlSslConfig parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.datastream.v1.MysqlSslConfig 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.google.cloud.datastream.v1.MysqlSslConfig parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.datastream.v1.MysqlSslConfig 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.google.cloud.datastream.v1.MysqlSslConfig 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;
}
/**
*
*
*
* MySQL SSL configuration information.
*
*
* Protobuf type {@code google.cloud.datastream.v1.MysqlSslConfig}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlSslConfig)
com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.datastream.v1.DatastreamResourcesProto
.internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.datastream.v1.DatastreamResourcesProto
.internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.datastream.v1.MysqlSslConfig.class,
com.google.cloud.datastream.v1.MysqlSslConfig.Builder.class);
}
// Construct using com.google.cloud.datastream.v1.MysqlSslConfig.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();
clientKey_ = "";
clientKeySet_ = false;
clientCertificate_ = "";
clientCertificateSet_ = false;
caCertificate_ = "";
caCertificateSet_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.datastream.v1.DatastreamResourcesProto
.internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor;
}
@java.lang.Override
public com.google.cloud.datastream.v1.MysqlSslConfig getDefaultInstanceForType() {
return com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.datastream.v1.MysqlSslConfig build() {
com.google.cloud.datastream.v1.MysqlSslConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.datastream.v1.MysqlSslConfig buildPartial() {
com.google.cloud.datastream.v1.MysqlSslConfig result =
new com.google.cloud.datastream.v1.MysqlSslConfig(this);
result.clientKey_ = clientKey_;
result.clientKeySet_ = clientKeySet_;
result.clientCertificate_ = clientCertificate_;
result.clientCertificateSet_ = clientCertificateSet_;
result.caCertificate_ = caCertificate_;
result.caCertificateSet_ = caCertificateSet_;
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 com.google.cloud.datastream.v1.MysqlSslConfig) {
return mergeFrom((com.google.cloud.datastream.v1.MysqlSslConfig) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlSslConfig other) {
if (other == com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance()) return this;
if (!other.getClientKey().isEmpty()) {
clientKey_ = other.clientKey_;
onChanged();
}
if (other.getClientKeySet() != false) {
setClientKeySet(other.getClientKeySet());
}
if (!other.getClientCertificate().isEmpty()) {
clientCertificate_ = other.clientCertificate_;
onChanged();
}
if (other.getClientCertificateSet() != false) {
setClientCertificateSet(other.getClientCertificateSet());
}
if (!other.getCaCertificate().isEmpty()) {
caCertificate_ = other.caCertificate_;
onChanged();
}
if (other.getCaCertificateSet() != false) {
setCaCertificateSet(other.getCaCertificateSet());
}
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 {
com.google.cloud.datastream.v1.MysqlSslConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.cloud.datastream.v1.MysqlSslConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clientKey_ = "";
/**
*
*
*
* Input only. PEM-encoded private key associated with the Client Certificate.
* If this field is used then the 'client_certificate' and the
* 'ca_certificate' fields are mandatory.
*
*
* string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return The clientKey.
*/
public java.lang.String getClientKey() {
java.lang.Object ref = clientKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Input only. PEM-encoded private key associated with the Client Certificate.
* If this field is used then the 'client_certificate' and the
* 'ca_certificate' fields are mandatory.
*
*
* string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return The bytes for clientKey.
*/
public com.google.protobuf.ByteString getClientKeyBytes() {
java.lang.Object ref = clientKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
clientKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Input only. PEM-encoded private key associated with the Client Certificate.
* If this field is used then the 'client_certificate' and the
* 'ca_certificate' fields are mandatory.
*
*
* string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @param value The clientKey to set.
* @return This builder for chaining.
*/
public Builder setClientKey(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientKey_ = value;
onChanged();
return this;
}
/**
*
*
*
* Input only. PEM-encoded private key associated with the Client Certificate.
* If this field is used then the 'client_certificate' and the
* 'ca_certificate' fields are mandatory.
*
*
* string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearClientKey() {
clientKey_ = getDefaultInstance().getClientKey();
onChanged();
return this;
}
/**
*
*
*
* Input only. PEM-encoded private key associated with the Client Certificate.
* If this field is used then the 'client_certificate' and the
* 'ca_certificate' fields are mandatory.
*
*
* string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @param value The bytes for clientKey to set.
* @return This builder for chaining.
*/
public Builder setClientKeyBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clientKey_ = value;
onChanged();
return this;
}
private boolean clientKeySet_;
/**
*
*
*
* Output only. Indicates whether the client_key field is set.
*
*
* bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The clientKeySet.
*/
@java.lang.Override
public boolean getClientKeySet() {
return clientKeySet_;
}
/**
*
*
*
* Output only. Indicates whether the client_key field is set.
*
*
* bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The clientKeySet to set.
* @return This builder for chaining.
*/
public Builder setClientKeySet(boolean value) {
clientKeySet_ = value;
onChanged();
return this;
}
/**
*
*
*
* Output only. Indicates whether the client_key field is set.
*
*
* bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearClientKeySet() {
clientKeySet_ = false;
onChanged();
return this;
}
private java.lang.Object clientCertificate_ = "";
/**
*
*
*
* Input only. PEM-encoded certificate that will be used by the replica to
* authenticate against the source database server. If this field is used
* then the 'client_key' and the 'ca_certificate' fields are mandatory.
*
*
* string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return The clientCertificate.
*/
public java.lang.String getClientCertificate() {
java.lang.Object ref = clientCertificate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientCertificate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Input only. PEM-encoded certificate that will be used by the replica to
* authenticate against the source database server. If this field is used
* then the 'client_key' and the 'ca_certificate' fields are mandatory.
*
*
* string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return The bytes for clientCertificate.
*/
public com.google.protobuf.ByteString getClientCertificateBytes() {
java.lang.Object ref = clientCertificate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
clientCertificate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Input only. PEM-encoded certificate that will be used by the replica to
* authenticate against the source database server. If this field is used
* then the 'client_key' and the 'ca_certificate' fields are mandatory.
*
*
* string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @param value The clientCertificate to set.
* @return This builder for chaining.
*/
public Builder setClientCertificate(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientCertificate_ = value;
onChanged();
return this;
}
/**
*
*
*
* Input only. PEM-encoded certificate that will be used by the replica to
* authenticate against the source database server. If this field is used
* then the 'client_key' and the 'ca_certificate' fields are mandatory.
*
*
* string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearClientCertificate() {
clientCertificate_ = getDefaultInstance().getClientCertificate();
onChanged();
return this;
}
/**
*
*
*
* Input only. PEM-encoded certificate that will be used by the replica to
* authenticate against the source database server. If this field is used
* then the 'client_key' and the 'ca_certificate' fields are mandatory.
*
*
* string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @param value The bytes for clientCertificate to set.
* @return This builder for chaining.
*/
public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clientCertificate_ = value;
onChanged();
return this;
}
private boolean clientCertificateSet_;
/**
*
*
*
* Output only. Indicates whether the client_certificate field is set.
*
*
* bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The clientCertificateSet.
*/
@java.lang.Override
public boolean getClientCertificateSet() {
return clientCertificateSet_;
}
/**
*
*
*
* Output only. Indicates whether the client_certificate field is set.
*
*
* bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The clientCertificateSet to set.
* @return This builder for chaining.
*/
public Builder setClientCertificateSet(boolean value) {
clientCertificateSet_ = value;
onChanged();
return this;
}
/**
*
*
*
* Output only. Indicates whether the client_certificate field is set.
*
*
* bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearClientCertificateSet() {
clientCertificateSet_ = false;
onChanged();
return this;
}
private java.lang.Object caCertificate_ = "";
/**
*
*
*
* Input only. PEM-encoded certificate of the CA that signed the source
* database server's certificate.
*
*
* string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return The caCertificate.
*/
public java.lang.String getCaCertificate() {
java.lang.Object ref = caCertificate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
caCertificate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Input only. PEM-encoded certificate of the CA that signed the source
* database server's certificate.
*
*
* string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return The bytes for caCertificate.
*/
public com.google.protobuf.ByteString getCaCertificateBytes() {
java.lang.Object ref = caCertificate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
caCertificate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Input only. PEM-encoded certificate of the CA that signed the source
* database server's certificate.
*
*
* string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @param value The caCertificate to set.
* @return This builder for chaining.
*/
public Builder setCaCertificate(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
caCertificate_ = value;
onChanged();
return this;
}
/**
*
*
*
* Input only. PEM-encoded certificate of the CA that signed the source
* database server's certificate.
*
*
* string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearCaCertificate() {
caCertificate_ = getDefaultInstance().getCaCertificate();
onChanged();
return this;
}
/**
*
*
*
* Input only. PEM-encoded certificate of the CA that signed the source
* database server's certificate.
*
*
* string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];
*
* @param value The bytes for caCertificate to set.
* @return This builder for chaining.
*/
public Builder setCaCertificateBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
caCertificate_ = value;
onChanged();
return this;
}
private boolean caCertificateSet_;
/**
*
*
*
* Output only. Indicates whether the ca_certificate field is set.
*
*
* bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The caCertificateSet.
*/
@java.lang.Override
public boolean getCaCertificateSet() {
return caCertificateSet_;
}
/**
*
*
*
* Output only. Indicates whether the ca_certificate field is set.
*
*
* bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The caCertificateSet to set.
* @return This builder for chaining.
*/
public Builder setCaCertificateSet(boolean value) {
caCertificateSet_ = value;
onChanged();
return this;
}
/**
*
*
*
* Output only. Indicates whether the ca_certificate field is set.
*
*
* bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearCaCertificateSet() {
caCertificateSet_ = false;
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:google.cloud.datastream.v1.MysqlSslConfig)
}
// @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlSslConfig)
private static final com.google.cloud.datastream.v1.MysqlSslConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlSslConfig();
}
public static com.google.cloud.datastream.v1.MysqlSslConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MysqlSslConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MysqlSslConfig(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 com.google.cloud.datastream.v1.MysqlSslConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy