Package viam.app.data.v1
Class Data.GetDatabaseConnectionResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Data.GetDatabaseConnectionResponse,Data.GetDatabaseConnectionResponse.Builder>
viam.app.data.v1.Data.GetDatabaseConnectionResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,Data.GetDatabaseConnectionResponseOrBuilder
- Enclosing class:
- Data.GetDatabaseConnectionResponse
public static final class Data.GetDatabaseConnectionResponse.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Data.GetDatabaseConnectionResponse,Data.GetDatabaseConnectionResponse.Builder>
implements Data.GetDatabaseConnectionResponseOrBuilder
GetDatabaseConnectionResponse returns the database connection hostname endpoint. It also returns a URI that can be used to connect to the database instance through MongoDB clients, as well as information on whether the Viam organization has a database user configured.Protobuf type
viam.app.data.v1.GetDatabaseConnectionResponse
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionbool has_database_user = 3 [json_name = "hasDatabaseUser"];
string hostname = 1 [json_name = "hostname"];
string mongodb_uri = 2 [json_name = "mongodbUri"];
boolean
bool has_database_user = 3 [json_name = "hasDatabaseUser"];
string hostname = 1 [json_name = "hostname"];
com.google.protobuf.ByteString
string hostname = 1 [json_name = "hostname"];
string mongodb_uri = 2 [json_name = "mongodbUri"];
com.google.protobuf.ByteString
string mongodb_uri = 2 [json_name = "mongodbUri"];
setHasDatabaseUser
(boolean value) bool has_database_user = 3 [json_name = "hasDatabaseUser"];
setHostname
(String value) string hostname = 1 [json_name = "hostname"];
setHostnameBytes
(com.google.protobuf.ByteString value) string hostname = 1 [json_name = "hostname"];
setMongodbUri
(String value) string mongodb_uri = 2 [json_name = "mongodbUri"];
setMongodbUriBytes
(com.google.protobuf.ByteString value) string mongodb_uri = 2 [json_name = "mongodbUri"];
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getHostname
string hostname = 1 [json_name = "hostname"];
- Specified by:
getHostname
in interfaceData.GetDatabaseConnectionResponseOrBuilder
- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()string hostname = 1 [json_name = "hostname"];
- Specified by:
getHostnameBytes
in interfaceData.GetDatabaseConnectionResponseOrBuilder
- Returns:
- The bytes for hostname.
-
setHostname
string hostname = 1 [json_name = "hostname"];
- Parameters:
value
- The hostname to set.- Returns:
- This builder for chaining.
-
clearHostname
string hostname = 1 [json_name = "hostname"];
- Returns:
- This builder for chaining.
-
setHostnameBytes
public Data.GetDatabaseConnectionResponse.Builder setHostnameBytes(com.google.protobuf.ByteString value) string hostname = 1 [json_name = "hostname"];
- Parameters:
value
- The bytes for hostname to set.- Returns:
- This builder for chaining.
-
getMongodbUri
string mongodb_uri = 2 [json_name = "mongodbUri"];
- Specified by:
getMongodbUri
in interfaceData.GetDatabaseConnectionResponseOrBuilder
- Returns:
- The mongodbUri.
-
getMongodbUriBytes
public com.google.protobuf.ByteString getMongodbUriBytes()string mongodb_uri = 2 [json_name = "mongodbUri"];
- Specified by:
getMongodbUriBytes
in interfaceData.GetDatabaseConnectionResponseOrBuilder
- Returns:
- The bytes for mongodbUri.
-
setMongodbUri
string mongodb_uri = 2 [json_name = "mongodbUri"];
- Parameters:
value
- The mongodbUri to set.- Returns:
- This builder for chaining.
-
clearMongodbUri
string mongodb_uri = 2 [json_name = "mongodbUri"];
- Returns:
- This builder for chaining.
-
setMongodbUriBytes
public Data.GetDatabaseConnectionResponse.Builder setMongodbUriBytes(com.google.protobuf.ByteString value) string mongodb_uri = 2 [json_name = "mongodbUri"];
- Parameters:
value
- The bytes for mongodbUri to set.- Returns:
- This builder for chaining.
-
getHasDatabaseUser
public boolean getHasDatabaseUser()bool has_database_user = 3 [json_name = "hasDatabaseUser"];
- Specified by:
getHasDatabaseUser
in interfaceData.GetDatabaseConnectionResponseOrBuilder
- Returns:
- The hasDatabaseUser.
-
setHasDatabaseUser
bool has_database_user = 3 [json_name = "hasDatabaseUser"];
- Parameters:
value
- The hasDatabaseUser to set.- Returns:
- This builder for chaining.
-
clearHasDatabaseUser
bool has_database_user = 3 [json_name = "hasDatabaseUser"];
- Returns:
- This builder for chaining.
-