Class AppProfile.Builder

  • All Implemented Interfaces:
    AppProfileOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    AppProfile

    public static final class AppProfile.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AppProfile.Builder>
    implements AppProfileOrBuilder
     A configuration object describing how Cloud Bigtable should treat traffic
     from a particular end user application.
     
    Protobuf type google.bigtable.admin.v2.AppProfile
    • 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.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public AppProfile.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AppProfile.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.Builder>
      • mergeFrom

        public AppProfile.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<AppProfile.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The unique name of the app profile. Values are of the form
         `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
         
        string name = 1;
        Specified by:
        getName in interface AppProfileOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The unique name of the app profile. Values are of the form
         `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
         
        string name = 1;
        Specified by:
        getNameBytes in interface AppProfileOrBuilder
        Returns:
        The bytes for name.
      • setName

        public AppProfile.Builder setName​(String value)
         The unique name of the app profile. Values are of the form
         `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public AppProfile.Builder clearName()
         The unique name of the app profile. Values are of the form
         `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public AppProfile.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The unique name of the app profile. Values are of the form
         `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getEtag

        public String getEtag()
         Strongly validated etag for optimistic concurrency control. Preserve the
         value returned from `GetAppProfile` when calling `UpdateAppProfile` to
         fail the request if there has been a modification in the mean time. The
         `update_mask` of the request need not include `etag` for this protection
         to apply.
         See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and
         [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more
         details.
         
        string etag = 2;
        Specified by:
        getEtag in interface AppProfileOrBuilder
        Returns:
        The etag.
      • getEtagBytes

        public com.google.protobuf.ByteString getEtagBytes()
         Strongly validated etag for optimistic concurrency control. Preserve the
         value returned from `GetAppProfile` when calling `UpdateAppProfile` to
         fail the request if there has been a modification in the mean time. The
         `update_mask` of the request need not include `etag` for this protection
         to apply.
         See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and
         [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more
         details.
         
        string etag = 2;
        Specified by:
        getEtagBytes in interface AppProfileOrBuilder
        Returns:
        The bytes for etag.
      • setEtag

        public AppProfile.Builder setEtag​(String value)
         Strongly validated etag for optimistic concurrency control. Preserve the
         value returned from `GetAppProfile` when calling `UpdateAppProfile` to
         fail the request if there has been a modification in the mean time. The
         `update_mask` of the request need not include `etag` for this protection
         to apply.
         See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and
         [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more
         details.
         
        string etag = 2;
        Parameters:
        value - The etag to set.
        Returns:
        This builder for chaining.
      • clearEtag

        public AppProfile.Builder clearEtag()
         Strongly validated etag for optimistic concurrency control. Preserve the
         value returned from `GetAppProfile` when calling `UpdateAppProfile` to
         fail the request if there has been a modification in the mean time. The
         `update_mask` of the request need not include `etag` for this protection
         to apply.
         See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and
         [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more
         details.
         
        string etag = 2;
        Returns:
        This builder for chaining.
      • setEtagBytes

        public AppProfile.Builder setEtagBytes​(com.google.protobuf.ByteString value)
         Strongly validated etag for optimistic concurrency control. Preserve the
         value returned from `GetAppProfile` when calling `UpdateAppProfile` to
         fail the request if there has been a modification in the mean time. The
         `update_mask` of the request need not include `etag` for this protection
         to apply.
         See [Wikipedia](https://en.wikipedia.org/wiki/HTTP_ETag) and
         [RFC 7232](https://tools.ietf.org/html/rfc7232#section-2.3) for more
         details.
         
        string etag = 2;
        Parameters:
        value - The bytes for etag to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         Long form description of the use case for this AppProfile.
         
        string description = 3;
        Specified by:
        getDescription in interface AppProfileOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Long form description of the use case for this AppProfile.
         
        string description = 3;
        Specified by:
        getDescriptionBytes in interface AppProfileOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public AppProfile.Builder setDescription​(String value)
         Long form description of the use case for this AppProfile.
         
        string description = 3;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public AppProfile.Builder clearDescription()
         Long form description of the use case for this AppProfile.
         
        string description = 3;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public AppProfile.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Long form description of the use case for this AppProfile.
         
        string description = 3;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasMultiClusterRoutingUseAny

        public boolean hasMultiClusterRoutingUseAny()
         Use a multi-cluster routing policy.
         
        .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny multi_cluster_routing_use_any = 5;
        Specified by:
        hasMultiClusterRoutingUseAny in interface AppProfileOrBuilder
        Returns:
        Whether the multiClusterRoutingUseAny field is set.
      • mergeMultiClusterRoutingUseAny

        public AppProfile.Builder mergeMultiClusterRoutingUseAny​(AppProfile.MultiClusterRoutingUseAny value)
         Use a multi-cluster routing policy.
         
        .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny multi_cluster_routing_use_any = 5;
      • clearMultiClusterRoutingUseAny

        public AppProfile.Builder clearMultiClusterRoutingUseAny()
         Use a multi-cluster routing policy.
         
        .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny multi_cluster_routing_use_any = 5;
      • getMultiClusterRoutingUseAnyBuilder

        public AppProfile.MultiClusterRoutingUseAny.Builder getMultiClusterRoutingUseAnyBuilder()
         Use a multi-cluster routing policy.
         
        .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny multi_cluster_routing_use_any = 5;
      • hasSingleClusterRouting

        public boolean hasSingleClusterRouting()
         Use a single-cluster routing policy.
         
        .google.bigtable.admin.v2.AppProfile.SingleClusterRouting single_cluster_routing = 6;
        Specified by:
        hasSingleClusterRouting in interface AppProfileOrBuilder
        Returns:
        Whether the singleClusterRouting field is set.
      • mergeSingleClusterRouting

        public AppProfile.Builder mergeSingleClusterRouting​(AppProfile.SingleClusterRouting value)
         Use a single-cluster routing policy.
         
        .google.bigtable.admin.v2.AppProfile.SingleClusterRouting single_cluster_routing = 6;
      • clearSingleClusterRouting

        public AppProfile.Builder clearSingleClusterRouting()
         Use a single-cluster routing policy.
         
        .google.bigtable.admin.v2.AppProfile.SingleClusterRouting single_cluster_routing = 6;
      • getSingleClusterRoutingBuilder

        public AppProfile.SingleClusterRouting.Builder getSingleClusterRoutingBuilder()
         Use a single-cluster routing policy.
         
        .google.bigtable.admin.v2.AppProfile.SingleClusterRouting single_cluster_routing = 6;
      • setUnknownFields

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

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