Class BeginTransactionRequest.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<BeginTransactionRequest.Builder>
      • clear

        public BeginTransactionRequest.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.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<BeginTransactionRequest.Builder>
      • getDefaultInstanceForType

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

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

        public BeginTransactionRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public BeginTransactionRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
      • clearField

        public BeginTransactionRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
      • clearOneof

        public BeginTransactionRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
      • setRepeatedField

        public BeginTransactionRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
      • addRepeatedField

        public BeginTransactionRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
      • isInitialized

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

        public BeginTransactionRequest.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<BeginTransactionRequest.Builder>
        Throws:
        IOException
      • getProjectId

        public String getProjectId()
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProjectId in interface BeginTransactionRequestOrBuilder
        Returns:
        The projectId.
      • getProjectIdBytes

        public com.google.protobuf.ByteString getProjectIdBytes()
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProjectIdBytes in interface BeginTransactionRequestOrBuilder
        Returns:
        The bytes for projectId.
      • setProjectId

        public BeginTransactionRequest.Builder setProjectId​(String value)
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The projectId to set.
        Returns:
        This builder for chaining.
      • clearProjectId

        public BeginTransactionRequest.Builder clearProjectId()
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setProjectIdBytes

        public BeginTransactionRequest.Builder setProjectIdBytes​(com.google.protobuf.ByteString value)
         Required. The ID of the project against which to make the request.
         
        string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for projectId to set.
        Returns:
        This builder for chaining.
      • getDatabaseId

        public String getDatabaseId()
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Specified by:
        getDatabaseId in interface BeginTransactionRequestOrBuilder
        Returns:
        The databaseId.
      • getDatabaseIdBytes

        public com.google.protobuf.ByteString getDatabaseIdBytes()
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Specified by:
        getDatabaseIdBytes in interface BeginTransactionRequestOrBuilder
        Returns:
        The bytes for databaseId.
      • setDatabaseId

        public BeginTransactionRequest.Builder setDatabaseId​(String value)
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Parameters:
        value - The databaseId to set.
        Returns:
        This builder for chaining.
      • clearDatabaseId

        public BeginTransactionRequest.Builder clearDatabaseId()
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Returns:
        This builder for chaining.
      • setDatabaseIdBytes

        public BeginTransactionRequest.Builder setDatabaseIdBytes​(com.google.protobuf.ByteString value)
         The ID of the database against which to make the request.
        
         '(default)' is not allowed; please use empty string '' to refer the default
         database.
         
        string database_id = 9;
        Parameters:
        value - The bytes for databaseId to set.
        Returns:
        This builder for chaining.
      • hasTransactionOptions

        public boolean hasTransactionOptions()
         Options for a new transaction.
         
        .google.datastore.v1.TransactionOptions transaction_options = 10;
        Specified by:
        hasTransactionOptions in interface BeginTransactionRequestOrBuilder
        Returns:
        Whether the transactionOptions field is set.
      • clearTransactionOptions

        public BeginTransactionRequest.Builder clearTransactionOptions()
         Options for a new transaction.
         
        .google.datastore.v1.TransactionOptions transaction_options = 10;
      • getTransactionOptionsBuilder

        public TransactionOptions.Builder getTransactionOptionsBuilder()
         Options for a new transaction.
         
        .google.datastore.v1.TransactionOptions transaction_options = 10;
      • setUnknownFields

        public final BeginTransactionRequest.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<BeginTransactionRequest.Builder>
      • mergeUnknownFields

        public final BeginTransactionRequest.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<BeginTransactionRequest.Builder>