Package com.google.cloud.alloydb.v1beta
Class ConnectionInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
-
- com.google.cloud.alloydb.v1beta.ConnectionInfo.Builder
-
- All Implemented Interfaces:
ConnectionInfoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ConnectionInfo
public static final class ConnectionInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder> implements ConnectionInfoOrBuilder
ConnectionInfo singleton resource. https://google.aip.dev/156
Protobuf typegoogle.cloud.alloydb.v1beta.ConnectionInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ConnectionInfo.Builder
addAllPemCertificateChain(Iterable<String> values)
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.ConnectionInfo.Builder
addPemCertificateChain(String value)
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.ConnectionInfo.Builder
addPemCertificateChainBytes(com.google.protobuf.ByteString value)
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.ConnectionInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ConnectionInfo
build()
ConnectionInfo
buildPartial()
ConnectionInfo.Builder
clear()
ConnectionInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ConnectionInfo.Builder
clearInstanceUid()
Output only.ConnectionInfo.Builder
clearIpAddress()
Output only.ConnectionInfo.Builder
clearName()
The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.ConnectionInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ConnectionInfo.Builder
clearPemCertificateChain()
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.ConnectionInfo.Builder
clone()
ConnectionInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getInstanceUid()
Output only.com.google.protobuf.ByteString
getInstanceUidBytes()
Output only.String
getIpAddress()
Output only.com.google.protobuf.ByteString
getIpAddressBytes()
Output only.String
getName()
The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.com.google.protobuf.ByteString
getNameBytes()
The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.String
getPemCertificateChain(int index)
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.com.google.protobuf.ByteString
getPemCertificateChainBytes(int index)
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.int
getPemCertificateChainCount()
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.com.google.protobuf.ProtocolStringList
getPemCertificateChainList()
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ConnectionInfo.Builder
mergeFrom(ConnectionInfo other)
ConnectionInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ConnectionInfo.Builder
mergeFrom(com.google.protobuf.Message other)
ConnectionInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ConnectionInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ConnectionInfo.Builder
setInstanceUid(String value)
Output only.ConnectionInfo.Builder
setInstanceUidBytes(com.google.protobuf.ByteString value)
Output only.ConnectionInfo.Builder
setIpAddress(String value)
Output only.ConnectionInfo.Builder
setIpAddressBytes(com.google.protobuf.ByteString value)
Output only.ConnectionInfo.Builder
setName(String value)
The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.ConnectionInfo.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.ConnectionInfo.Builder
setPemCertificateChain(int index, String value)
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated.ConnectionInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ConnectionInfo.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
-
clear
public ConnectionInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
-
getDefaultInstanceForType
public ConnectionInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ConnectionInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ConnectionInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ConnectionInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
-
setField
public ConnectionInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
-
clearField
public ConnectionInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
-
clearOneof
public ConnectionInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
-
setRepeatedField
public ConnectionInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
-
addRepeatedField
public ConnectionInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
-
mergeFrom
public ConnectionInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ConnectionInfo.Builder>
-
mergeFrom
public ConnectionInfo.Builder mergeFrom(ConnectionInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
-
mergeFrom
public ConnectionInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ConnectionInfo.Builder>
- Throws:
IOException
-
getName
public String getName()
The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.
string name = 1;
- Specified by:
getName
in interfaceConnectionInfoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.
string name = 1;
- Specified by:
getNameBytes
in interfaceConnectionInfoOrBuilder
- Returns:
- The bytes for name.
-
setName
public ConnectionInfo.Builder setName(String value)
The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public ConnectionInfo.Builder clearName()
The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public ConnectionInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo This field currently has no semantic meaning.
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getIpAddress
public String getIpAddress()
Output only. The IP address for the Instance. This is the connection endpoint for an end-user application.
string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getIpAddress
in interfaceConnectionInfoOrBuilder
- Returns:
- The ipAddress.
-
getIpAddressBytes
public com.google.protobuf.ByteString getIpAddressBytes()
Output only. The IP address for the Instance. This is the connection endpoint for an end-user application.
string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getIpAddressBytes
in interfaceConnectionInfoOrBuilder
- Returns:
- The bytes for ipAddress.
-
setIpAddress
public ConnectionInfo.Builder setIpAddress(String value)
Output only. The IP address for the Instance. This is the connection endpoint for an end-user application.
string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The ipAddress to set.- Returns:
- This builder for chaining.
-
clearIpAddress
public ConnectionInfo.Builder clearIpAddress()
Output only. The IP address for the Instance. This is the connection endpoint for an end-user application.
string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setIpAddressBytes
public ConnectionInfo.Builder setIpAddressBytes(com.google.protobuf.ByteString value)
Output only. The IP address for the Instance. This is the connection endpoint for an end-user application.
string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for ipAddress to set.- Returns:
- This builder for chaining.
-
getPemCertificateChainList
@Deprecated public com.google.protobuf.ProtocolStringList getPemCertificateChainList()
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=894Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getPemCertificateChainList
in interfaceConnectionInfoOrBuilder
- Returns:
- A list containing the pemCertificateChain.
-
getPemCertificateChainCount
@Deprecated public int getPemCertificateChainCount()
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=894Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getPemCertificateChainCount
in interfaceConnectionInfoOrBuilder
- Returns:
- The count of pemCertificateChain.
-
getPemCertificateChain
@Deprecated public String getPemCertificateChain(int index)
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=894Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getPemCertificateChain
in interfaceConnectionInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The pemCertificateChain at the given index.
-
getPemCertificateChainBytes
@Deprecated public com.google.protobuf.ByteString getPemCertificateChainBytes(int index)
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=894Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getPemCertificateChainBytes
in interfaceConnectionInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the pemCertificateChain at the given index.
-
setPemCertificateChain
@Deprecated public ConnectionInfo.Builder setPemCertificateChain(int index, String value)
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=894Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
index
- The index to set the value at.value
- The pemCertificateChain to set.- Returns:
- This builder for chaining.
-
addPemCertificateChain
@Deprecated public ConnectionInfo.Builder addPemCertificateChain(String value)
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=894Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The pemCertificateChain to add.- Returns:
- This builder for chaining.
-
addAllPemCertificateChain
@Deprecated public ConnectionInfo.Builder addAllPemCertificateChain(Iterable<String> values)
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=894Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
values
- The pemCertificateChain to add.- Returns:
- This builder for chaining.
-
clearPemCertificateChain
@Deprecated public ConnectionInfo.Builder clearPemCertificateChain()
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=894Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
addPemCertificateChainBytes
@Deprecated public ConnectionInfo.Builder addPemCertificateChainBytes(com.google.protobuf.ByteString value)
Deprecated.google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=894Output only. The pem-encoded chain that may be used to verify the X.509 certificate. Expected to be in issuer-to-root order according to RFC 5246.
repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes of the pemCertificateChain to add.- Returns:
- This builder for chaining.
-
getInstanceUid
public String getInstanceUid()
Output only. The unique ID of the Instance.
string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getInstanceUid
in interfaceConnectionInfoOrBuilder
- Returns:
- The instanceUid.
-
getInstanceUidBytes
public com.google.protobuf.ByteString getInstanceUidBytes()
Output only. The unique ID of the Instance.
string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getInstanceUidBytes
in interfaceConnectionInfoOrBuilder
- Returns:
- The bytes for instanceUid.
-
setInstanceUid
public ConnectionInfo.Builder setInstanceUid(String value)
Output only. The unique ID of the Instance.
string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The instanceUid to set.- Returns:
- This builder for chaining.
-
clearInstanceUid
public ConnectionInfo.Builder clearInstanceUid()
Output only. The unique ID of the Instance.
string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setInstanceUidBytes
public ConnectionInfo.Builder setInstanceUidBytes(com.google.protobuf.ByteString value)
Output only. The unique ID of the Instance.
string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for instanceUid to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ConnectionInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
-
mergeUnknownFields
public final ConnectionInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
-
-