Class AppProfile.SingleClusterRouting.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<AppProfile.SingleClusterRouting.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<AppProfile.SingleClusterRouting.Builder>
      • getDefaultInstanceForType

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

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

        public AppProfile.SingleClusterRouting 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<AppProfile.SingleClusterRouting.Builder>
      • setClusterId

        public AppProfile.SingleClusterRouting.Builder setClusterId​(String value)
         The cluster to which read/write requests should be routed.
         
        string cluster_id = 1;
        Parameters:
        value - The clusterId to set.
        Returns:
        This builder for chaining.
      • clearClusterId

        public AppProfile.SingleClusterRouting.Builder clearClusterId()
         The cluster to which read/write requests should be routed.
         
        string cluster_id = 1;
        Returns:
        This builder for chaining.
      • setClusterIdBytes

        public AppProfile.SingleClusterRouting.Builder setClusterIdBytes​(com.google.protobuf.ByteString value)
         The cluster to which read/write requests should be routed.
         
        string cluster_id = 1;
        Parameters:
        value - The bytes for clusterId to set.
        Returns:
        This builder for chaining.
      • getAllowTransactionalWrites

        public boolean getAllowTransactionalWrites()
         Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are
         allowed by this app profile. It is unsafe to send these requests to
         the same table/row/column in multiple clusters.
         
        bool allow_transactional_writes = 2;
        Specified by:
        getAllowTransactionalWrites in interface AppProfile.SingleClusterRoutingOrBuilder
        Returns:
        The allowTransactionalWrites.
      • setAllowTransactionalWrites

        public AppProfile.SingleClusterRouting.Builder setAllowTransactionalWrites​(boolean value)
         Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are
         allowed by this app profile. It is unsafe to send these requests to
         the same table/row/column in multiple clusters.
         
        bool allow_transactional_writes = 2;
        Parameters:
        value - The allowTransactionalWrites to set.
        Returns:
        This builder for chaining.
      • clearAllowTransactionalWrites

        public AppProfile.SingleClusterRouting.Builder clearAllowTransactionalWrites()
         Whether or not `CheckAndMutateRow` and `ReadModifyWriteRow` requests are
         allowed by this app profile. It is unsafe to send these requests to
         the same table/row/column in multiple clusters.
         
        bool allow_transactional_writes = 2;
        Returns:
        This builder for chaining.