Class ConnectionProto.Connection.Builder

    • Method Detail

      • 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.Builder<ConnectionProto.Connection.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.Connection.Builder>
      • getDefaultInstanceForType

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.Connection.Builder>
      • mergeFrom

        public ConnectionProto.Connection.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConnectionProto.Connection.Builder>
        Throws:
        IOException
      • 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.
      • setName

        public ConnectionProto.Connection.Builder setName​(String value)
         The resource name of the connection in the form of:
         `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ConnectionProto.Connection.Builder clearName()
         The resource name of the connection in the form of:
         `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public ConnectionProto.Connection.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The resource name of the connection in the form of:
         `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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.
      • setFriendlyName

        public ConnectionProto.Connection.Builder setFriendlyName​(String value)
         User provided display name for the connection.
         
        string friendly_name = 2;
        Parameters:
        value - The friendlyName to set.
        Returns:
        This builder for chaining.
      • clearFriendlyName

        public ConnectionProto.Connection.Builder clearFriendlyName()
         User provided display name for the connection.
         
        string friendly_name = 2;
        Returns:
        This builder for chaining.
      • setFriendlyNameBytes

        public ConnectionProto.Connection.Builder setFriendlyNameBytes​(com.google.protobuf.ByteString value)
         User provided display name for the connection.
         
        string friendly_name = 2;
        Parameters:
        value - The bytes for friendlyName to set.
        Returns:
        This builder for chaining.
      • setDescription

        public ConnectionProto.Connection.Builder setDescription​(String value)
         User provided description.
         
        string description = 3;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public ConnectionProto.Connection.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         User provided description.
         
        string description = 3;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • 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.
      • clearCloudSql

        public ConnectionProto.Connection.Builder clearCloudSql()
         Cloud SQL properties.
         
        .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4;
      • 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.
      • setCreationTime

        public ConnectionProto.Connection.Builder setCreationTime​(long value)
         Output only. The creation timestamp of the connection.
         
        int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The creationTime to set.
        Returns:
        This builder for chaining.
      • clearCreationTime

        public ConnectionProto.Connection.Builder clearCreationTime()
         Output only. The creation timestamp of the connection.
         
        int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • 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.
      • setLastModifiedTime

        public ConnectionProto.Connection.Builder setLastModifiedTime​(long value)
         Output only. The last update timestamp of the connection.
         
        int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The lastModifiedTime to set.
        Returns:
        This builder for chaining.
      • clearLastModifiedTime

        public ConnectionProto.Connection.Builder clearLastModifiedTime()
         Output only. The last update timestamp of the connection.
         
        int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • 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.
      • setHasCredential

        public ConnectionProto.Connection.Builder setHasCredential​(boolean value)
         Output only. True, if credential is configured for this connection.
         
        bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The hasCredential to set.
        Returns:
        This builder for chaining.
      • clearHasCredential

        public ConnectionProto.Connection.Builder clearHasCredential()
         Output only. True, if credential is configured for this connection.
         
        bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ConnectionProto.Connection.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.Connection.Builder>
      • mergeUnknownFields

        public final ConnectionProto.Connection.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionProto.Connection.Builder>