Class UpdateNamespaceTagsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<UpdateNamespaceTagsRequest.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<UpdateNamespaceTagsRequest.Builder>
io.temporal.api.cloud.cloudservice.v1.UpdateNamespaceTagsRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, UpdateNamespaceTagsRequestOrBuilder, Cloneable
Enclosing class:
UpdateNamespaceTagsRequest

public static final class UpdateNamespaceTagsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateNamespaceTagsRequest.Builder> implements UpdateNamespaceTagsRequestOrBuilder
Protobuf type temporal.api.cloud.cloudservice.v1.UpdateNamespaceTagsRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateNamespaceTagsRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateNamespaceTagsRequest.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateNamespaceTagsRequest.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<UpdateNamespaceTagsRequest.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<UpdateNamespaceTagsRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UpdateNamespaceTagsRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<UpdateNamespaceTagsRequest.Builder>
    • setField

      public UpdateNamespaceTagsRequest.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<UpdateNamespaceTagsRequest.Builder>
    • clearField

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

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

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

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

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

    • isInitialized

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

      public UpdateNamespaceTagsRequest.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<UpdateNamespaceTagsRequest.Builder>
      Throws:
      IOException
    • getNamespace

      public String getNamespace()
       The namespace to set tags for.
       
      string namespace = 1;
      Specified by:
      getNamespace in interface UpdateNamespaceTagsRequestOrBuilder
      Returns:
      The namespace.
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
       The namespace to set tags for.
       
      string namespace = 1;
      Specified by:
      getNamespaceBytes in interface UpdateNamespaceTagsRequestOrBuilder
      Returns:
      The bytes for namespace.
    • setNamespace

      public UpdateNamespaceTagsRequest.Builder setNamespace(String value)
       The namespace to set tags for.
       
      string namespace = 1;
      Parameters:
      value - The namespace to set.
      Returns:
      This builder for chaining.
    • clearNamespace

      public UpdateNamespaceTagsRequest.Builder clearNamespace()
       The namespace to set tags for.
       
      string namespace = 1;
      Returns:
      This builder for chaining.
    • setNamespaceBytes

      public UpdateNamespaceTagsRequest.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
       The namespace to set tags for.
       
      string namespace = 1;
      Parameters:
      value - The bytes for namespace to set.
      Returns:
      This builder for chaining.
    • getTagsToUpsertCount

      public int getTagsToUpsertCount()
      Description copied from interface: UpdateNamespaceTagsRequestOrBuilder
       A list of tags to add or update.
       If a key of an existing tag is added, the tag's value is updated.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      map<string, string> tags_to_upsert = 2;
      Specified by:
      getTagsToUpsertCount in interface UpdateNamespaceTagsRequestOrBuilder
    • containsTagsToUpsert

      public boolean containsTagsToUpsert(String key)
       A list of tags to add or update.
       If a key of an existing tag is added, the tag's value is updated.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      map<string, string> tags_to_upsert = 2;
      Specified by:
      containsTagsToUpsert in interface UpdateNamespaceTagsRequestOrBuilder
    • getTagsToUpsert

      @Deprecated public Map<String,String> getTagsToUpsert()
      Deprecated.
      Specified by:
      getTagsToUpsert in interface UpdateNamespaceTagsRequestOrBuilder
    • getTagsToUpsertMap

      public Map<String,String> getTagsToUpsertMap()
       A list of tags to add or update.
       If a key of an existing tag is added, the tag's value is updated.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      map<string, string> tags_to_upsert = 2;
      Specified by:
      getTagsToUpsertMap in interface UpdateNamespaceTagsRequestOrBuilder
    • getTagsToUpsertOrDefault

      public String getTagsToUpsertOrDefault(String key, String defaultValue)
       A list of tags to add or update.
       If a key of an existing tag is added, the tag's value is updated.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      map<string, string> tags_to_upsert = 2;
      Specified by:
      getTagsToUpsertOrDefault in interface UpdateNamespaceTagsRequestOrBuilder
    • getTagsToUpsertOrThrow

      public String getTagsToUpsertOrThrow(String key)
       A list of tags to add or update.
       If a key of an existing tag is added, the tag's value is updated.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      map<string, string> tags_to_upsert = 2;
      Specified by:
      getTagsToUpsertOrThrow in interface UpdateNamespaceTagsRequestOrBuilder
    • clearTagsToUpsert

      public UpdateNamespaceTagsRequest.Builder clearTagsToUpsert()
    • removeTagsToUpsert

      public UpdateNamespaceTagsRequest.Builder removeTagsToUpsert(String key)
       A list of tags to add or update.
       If a key of an existing tag is added, the tag's value is updated.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      map<string, string> tags_to_upsert = 2;
    • getMutableTagsToUpsert

      @Deprecated public Map<String,String> getMutableTagsToUpsert()
      Deprecated.
      Use alternate mutation accessors instead.
    • putTagsToUpsert

      public UpdateNamespaceTagsRequest.Builder putTagsToUpsert(String key, String value)
       A list of tags to add or update.
       If a key of an existing tag is added, the tag's value is updated.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      map<string, string> tags_to_upsert = 2;
    • putAllTagsToUpsert

      public UpdateNamespaceTagsRequest.Builder putAllTagsToUpsert(Map<String,String> values)
       A list of tags to add or update.
       If a key of an existing tag is added, the tag's value is updated.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      map<string, string> tags_to_upsert = 2;
    • getTagsToRemoveList

      public com.google.protobuf.ProtocolStringList getTagsToRemoveList()
       A list of tag keys to remove.
       If a tag key doesn't exist, it is silently ignored.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      repeated string tags_to_remove = 3;
      Specified by:
      getTagsToRemoveList in interface UpdateNamespaceTagsRequestOrBuilder
      Returns:
      A list containing the tagsToRemove.
    • getTagsToRemoveCount

      public int getTagsToRemoveCount()
       A list of tag keys to remove.
       If a tag key doesn't exist, it is silently ignored.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      repeated string tags_to_remove = 3;
      Specified by:
      getTagsToRemoveCount in interface UpdateNamespaceTagsRequestOrBuilder
      Returns:
      The count of tagsToRemove.
    • getTagsToRemove

      public String getTagsToRemove(int index)
       A list of tag keys to remove.
       If a tag key doesn't exist, it is silently ignored.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      repeated string tags_to_remove = 3;
      Specified by:
      getTagsToRemove in interface UpdateNamespaceTagsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tagsToRemove at the given index.
    • getTagsToRemoveBytes

      public com.google.protobuf.ByteString getTagsToRemoveBytes(int index)
       A list of tag keys to remove.
       If a tag key doesn't exist, it is silently ignored.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      repeated string tags_to_remove = 3;
      Specified by:
      getTagsToRemoveBytes in interface UpdateNamespaceTagsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tagsToRemove at the given index.
    • setTagsToRemove

      public UpdateNamespaceTagsRequest.Builder setTagsToRemove(int index, String value)
       A list of tag keys to remove.
       If a tag key doesn't exist, it is silently ignored.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      repeated string tags_to_remove = 3;
      Parameters:
      index - The index to set the value at.
      value - The tagsToRemove to set.
      Returns:
      This builder for chaining.
    • addTagsToRemove

      public UpdateNamespaceTagsRequest.Builder addTagsToRemove(String value)
       A list of tag keys to remove.
       If a tag key doesn't exist, it is silently ignored.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      repeated string tags_to_remove = 3;
      Parameters:
      value - The tagsToRemove to add.
      Returns:
      This builder for chaining.
    • addAllTagsToRemove

      public UpdateNamespaceTagsRequest.Builder addAllTagsToRemove(Iterable<String> values)
       A list of tag keys to remove.
       If a tag key doesn't exist, it is silently ignored.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      repeated string tags_to_remove = 3;
      Parameters:
      values - The tagsToRemove to add.
      Returns:
      This builder for chaining.
    • clearTagsToRemove

      public UpdateNamespaceTagsRequest.Builder clearTagsToRemove()
       A list of tag keys to remove.
       If a tag key doesn't exist, it is silently ignored.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      repeated string tags_to_remove = 3;
      Returns:
      This builder for chaining.
    • addTagsToRemoveBytes

      public UpdateNamespaceTagsRequest.Builder addTagsToRemoveBytes(com.google.protobuf.ByteString value)
       A list of tag keys to remove.
       If a tag key doesn't exist, it is silently ignored.
       At least one of tags_to_upsert or tags_to_remove must be specified.
       
      repeated string tags_to_remove = 3;
      Parameters:
      value - The bytes of the tagsToRemove to add.
      Returns:
      This builder for chaining.
    • getAsyncOperationId

      public String getAsyncOperationId()
       The id to use for this async operation - optional.
       
      string async_operation_id = 4;
      Specified by:
      getAsyncOperationId in interface UpdateNamespaceTagsRequestOrBuilder
      Returns:
      The asyncOperationId.
    • getAsyncOperationIdBytes

      public com.google.protobuf.ByteString getAsyncOperationIdBytes()
       The id to use for this async operation - optional.
       
      string async_operation_id = 4;
      Specified by:
      getAsyncOperationIdBytes in interface UpdateNamespaceTagsRequestOrBuilder
      Returns:
      The bytes for asyncOperationId.
    • setAsyncOperationId

      public UpdateNamespaceTagsRequest.Builder setAsyncOperationId(String value)
       The id to use for this async operation - optional.
       
      string async_operation_id = 4;
      Parameters:
      value - The asyncOperationId to set.
      Returns:
      This builder for chaining.
    • clearAsyncOperationId

      public UpdateNamespaceTagsRequest.Builder clearAsyncOperationId()
       The id to use for this async operation - optional.
       
      string async_operation_id = 4;
      Returns:
      This builder for chaining.
    • setAsyncOperationIdBytes

      public UpdateNamespaceTagsRequest.Builder setAsyncOperationIdBytes(com.google.protobuf.ByteString value)
       The id to use for this async operation - optional.
       
      string async_operation_id = 4;
      Parameters:
      value - The bytes for asyncOperationId to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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