Class ConnectionProto.Connection

  • All Implemented Interfaces:
    ConnectionProto.ConnectionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    ConnectionProto

    public static final class ConnectionProto.Connection
    extends com.google.protobuf.GeneratedMessageV3
    implements ConnectionProto.ConnectionOrBuilder
     Configuration parameters to establish connection with an external data
     source, except the credential attributes.
     
    Protobuf type google.cloud.bigquery.connection.v1beta1.Connection
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         The resource name of the connection in the form of:
         `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
         
        string name = 1;
        Specified by:
        getName in interface ConnectionProto.ConnectionOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The resource name of the connection in the form of:
         `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
         
        string name = 1;
        Specified by:
        getNameBytes in interface ConnectionProto.ConnectionOrBuilder
        Returns:
        The bytes for name.
      • getFriendlyNameBytes

        public com.google.protobuf.ByteString getFriendlyNameBytes()
         User provided display name for the connection.
         
        string friendly_name = 2;
        Specified by:
        getFriendlyNameBytes in interface ConnectionProto.ConnectionOrBuilder
        Returns:
        The bytes for friendlyName.
      • hasCloudSql

        public boolean hasCloudSql()
         Cloud SQL properties.
         
        .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4;
        Specified by:
        hasCloudSql in interface ConnectionProto.ConnectionOrBuilder
        Returns:
        Whether the cloudSql field is set.
      • getCreationTime

        public long getCreationTime()
         Output only. The creation timestamp of the connection.
         
        int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreationTime in interface ConnectionProto.ConnectionOrBuilder
        Returns:
        The creationTime.
      • getLastModifiedTime

        public long getLastModifiedTime()
         Output only. The last update timestamp of the connection.
         
        int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLastModifiedTime in interface ConnectionProto.ConnectionOrBuilder
        Returns:
        The lastModifiedTime.
      • getHasCredential

        public boolean getHasCredential()
         Output only. True, if credential is configured for this connection.
         
        bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getHasCredential in interface ConnectionProto.ConnectionOrBuilder
        Returns:
        The hasCredential.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ConnectionProto.Connection parseFrom​(ByteBuffer data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ConnectionProto.Connection parseFrom​(ByteBuffer data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ConnectionProto.Connection parseFrom​(com.google.protobuf.ByteString data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ConnectionProto.Connection parseFrom​(com.google.protobuf.ByteString data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ConnectionProto.Connection parseFrom​(byte[] data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ConnectionProto.Connection parseFrom​(byte[] data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public ConnectionProto.Connection.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ConnectionProto.Connection.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ConnectionProto.Connection.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ConnectionProto.Connection> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ConnectionProto.Connection getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder