All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.temporal.api.namespace.v1.UpdateNamespaceInfo Maven / Gradle / Ivy

There is a newer version: 1.24.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: temporal/api/namespace/v1/message.proto

package io.temporal.api.namespace.v1;

/**
 * Protobuf type {@code temporal.api.namespace.v1.UpdateNamespaceInfo}
 */
@javax.annotation.Generated(value="protoc", comments="annotations:UpdateNamespaceInfo.java.pb.meta")
public  final class UpdateNamespaceInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:temporal.api.namespace.v1.UpdateNamespaceInfo)
    UpdateNamespaceInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use UpdateNamespaceInfo.newBuilder() to construct.
  private UpdateNamespaceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private UpdateNamespaceInfo() {
    description_ = "";
    ownerEmail_ = "";
    state_ = 0;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new UpdateNamespaceInfo();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private UpdateNamespaceInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            description_ = s;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            ownerEmail_ = s;
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              data_ = com.google.protobuf.MapField.newMapField(
                  DataDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry
            data__ = input.readMessage(
                DataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            data_.getMutableMap().put(
                data__.getKey(), data__.getValue());
            break;
          }
          case 32: {
            int rawValue = input.readEnum();

            state_ = rawValue;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.temporal.api.namespace.v1.MessageProto.internal_static_temporal_api_namespace_v1_UpdateNamespaceInfo_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 3:
        return internalGetData();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.temporal.api.namespace.v1.MessageProto.internal_static_temporal_api_namespace_v1_UpdateNamespaceInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.temporal.api.namespace.v1.UpdateNamespaceInfo.class, io.temporal.api.namespace.v1.UpdateNamespaceInfo.Builder.class);
  }

  public static final int DESCRIPTION_FIELD_NUMBER = 1;
  private volatile java.lang.Object description_;
  /**
   * string description = 1;
   * @return The description.
   */
  public java.lang.String getDescription() {
    java.lang.Object ref = description_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      description_ = s;
      return s;
    }
  }
  /**
   * string description = 1;
   * @return The bytes for description.
   */
  public com.google.protobuf.ByteString
      getDescriptionBytes() {
    java.lang.Object ref = description_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      description_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OWNER_EMAIL_FIELD_NUMBER = 2;
  private volatile java.lang.Object ownerEmail_;
  /**
   * string owner_email = 2;
   * @return The ownerEmail.
   */
  public java.lang.String getOwnerEmail() {
    java.lang.Object ref = ownerEmail_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      ownerEmail_ = s;
      return s;
    }
  }
  /**
   * string owner_email = 2;
   * @return The bytes for ownerEmail.
   */
  public com.google.protobuf.ByteString
      getOwnerEmailBytes() {
    java.lang.Object ref = ownerEmail_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      ownerEmail_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DATA_FIELD_NUMBER = 3;
  private static final class DataDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, java.lang.String> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                io.temporal.api.namespace.v1.MessageProto.internal_static_temporal_api_namespace_v1_UpdateNamespaceInfo_DataEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.STRING,
                "");
  }
  private com.google.protobuf.MapField<
      java.lang.String, java.lang.String> data_;
  private com.google.protobuf.MapField
  internalGetData() {
    if (data_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          DataDefaultEntryHolder.defaultEntry);
    }
    return data_;
  }

  public int getDataCount() {
    return internalGetData().getMap().size();
  }
  /**
   * 
   * A key-value map for any customized purpose.
   * If data already exists on the namespace, 
   * this will merge with the existing key values. 
   * 
* * map<string, string> data = 3; */ public boolean containsData( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetData().getMap().containsKey(key); } /** * Use {@link #getDataMap()} instead. */ @java.lang.Deprecated public java.util.Map getData() { return getDataMap(); } /** *
   * A key-value map for any customized purpose.
   * If data already exists on the namespace, 
   * this will merge with the existing key values. 
   * 
* * map<string, string> data = 3; */ public java.util.Map getDataMap() { return internalGetData().getMap(); } /** *
   * A key-value map for any customized purpose.
   * If data already exists on the namespace, 
   * this will merge with the existing key values. 
   * 
* * map<string, string> data = 3; */ public java.lang.String getDataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * A key-value map for any customized purpose.
   * If data already exists on the namespace, 
   * this will merge with the existing key values. 
   * 
* * map<string, string> data = 3; */ public java.lang.String getDataOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int STATE_FIELD_NUMBER = 4; private int state_; /** *
   * New namespace state, server will reject if transition is not allowed.
   * Allowed transitions are:
   *  Registered -> [ Deleted | Deprecated | Handover ]
   *  Handover -> [ Registered ]
   * Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state.
   * 
* * .temporal.api.enums.v1.NamespaceState state = 4; * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; } /** *
   * New namespace state, server will reject if transition is not allowed.
   * Allowed transitions are:
   *  Registered -> [ Deleted | Deprecated | Handover ]
   *  Handover -> [ Registered ]
   * Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state.
   * 
* * .temporal.api.enums.v1.NamespaceState state = 4; * @return The state. */ public io.temporal.api.enums.v1.NamespaceState getState() { @SuppressWarnings("deprecation") io.temporal.api.enums.v1.NamespaceState result = io.temporal.api.enums.v1.NamespaceState.valueOf(state_); return result == null ? io.temporal.api.enums.v1.NamespaceState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } if (!getOwnerEmailBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ownerEmail_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetData(), DataDefaultEntryHolder.defaultEntry, 3); if (state_ != io.temporal.api.enums.v1.NamespaceState.NAMESPACE_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } if (!getOwnerEmailBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ownerEmail_); } for (java.util.Map.Entry entry : internalGetData().getMap().entrySet()) { com.google.protobuf.MapEntry data__ = DataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, data__); } if (state_ != io.temporal.api.enums.v1.NamespaceState.NAMESPACE_STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.temporal.api.namespace.v1.UpdateNamespaceInfo)) { return super.equals(obj); } io.temporal.api.namespace.v1.UpdateNamespaceInfo other = (io.temporal.api.namespace.v1.UpdateNamespaceInfo) obj; if (!getDescription() .equals(other.getDescription())) return false; if (!getOwnerEmail() .equals(other.getOwnerEmail())) return false; if (!internalGetData().equals( other.internalGetData())) return false; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + OWNER_EMAIL_FIELD_NUMBER; hash = (53 * hash) + getOwnerEmail().hashCode(); if (!internalGetData().getMap().isEmpty()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + internalGetData().hashCode(); } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.namespace.v1.UpdateNamespaceInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.namespace.v1.UpdateNamespaceInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.namespace.v1.UpdateNamespaceInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.namespace.v1.UpdateNamespaceInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.namespace.v1.UpdateNamespaceInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.namespace.v1.UpdateNamespaceInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.namespace.v1.UpdateNamespaceInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.namespace.v1.UpdateNamespaceInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.temporal.api.namespace.v1.UpdateNamespaceInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.namespace.v1.UpdateNamespaceInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.temporal.api.namespace.v1.UpdateNamespaceInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.namespace.v1.UpdateNamespaceInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.temporal.api.namespace.v1.UpdateNamespaceInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code temporal.api.namespace.v1.UpdateNamespaceInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.namespace.v1.UpdateNamespaceInfo) io.temporal.api.namespace.v1.UpdateNamespaceInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.namespace.v1.MessageProto.internal_static_temporal_api_namespace_v1_UpdateNamespaceInfo_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetData(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableData(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.namespace.v1.MessageProto.internal_static_temporal_api_namespace_v1_UpdateNamespaceInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.namespace.v1.UpdateNamespaceInfo.class, io.temporal.api.namespace.v1.UpdateNamespaceInfo.Builder.class); } // Construct using io.temporal.api.namespace.v1.UpdateNamespaceInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); description_ = ""; ownerEmail_ = ""; internalGetMutableData().clear(); state_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.temporal.api.namespace.v1.MessageProto.internal_static_temporal_api_namespace_v1_UpdateNamespaceInfo_descriptor; } @java.lang.Override public io.temporal.api.namespace.v1.UpdateNamespaceInfo getDefaultInstanceForType() { return io.temporal.api.namespace.v1.UpdateNamespaceInfo.getDefaultInstance(); } @java.lang.Override public io.temporal.api.namespace.v1.UpdateNamespaceInfo build() { io.temporal.api.namespace.v1.UpdateNamespaceInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.namespace.v1.UpdateNamespaceInfo buildPartial() { io.temporal.api.namespace.v1.UpdateNamespaceInfo result = new io.temporal.api.namespace.v1.UpdateNamespaceInfo(this); int from_bitField0_ = bitField0_; result.description_ = description_; result.ownerEmail_ = ownerEmail_; result.data_ = internalGetData(); result.data_.makeImmutable(); result.state_ = state_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.temporal.api.namespace.v1.UpdateNamespaceInfo) { return mergeFrom((io.temporal.api.namespace.v1.UpdateNamespaceInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.namespace.v1.UpdateNamespaceInfo other) { if (other == io.temporal.api.namespace.v1.UpdateNamespaceInfo.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getOwnerEmail().isEmpty()) { ownerEmail_ = other.ownerEmail_; onChanged(); } internalGetMutableData().mergeFrom( other.internalGetData()); if (other.state_ != 0) { setStateValue(other.getStateValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.temporal.api.namespace.v1.UpdateNamespaceInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.namespace.v1.UpdateNamespaceInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object description_ = ""; /** * string description = 1; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * string description = 1; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string description = 1; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** * string description = 1; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * string description = 1; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object ownerEmail_ = ""; /** * string owner_email = 2; * @return The ownerEmail. */ public java.lang.String getOwnerEmail() { java.lang.Object ref = ownerEmail_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ownerEmail_ = s; return s; } else { return (java.lang.String) ref; } } /** * string owner_email = 2; * @return The bytes for ownerEmail. */ public com.google.protobuf.ByteString getOwnerEmailBytes() { java.lang.Object ref = ownerEmail_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ownerEmail_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string owner_email = 2; * @param value The ownerEmail to set. * @return This builder for chaining. */ public Builder setOwnerEmail( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ownerEmail_ = value; onChanged(); return this; } /** * string owner_email = 2; * @return This builder for chaining. */ public Builder clearOwnerEmail() { ownerEmail_ = getDefaultInstance().getOwnerEmail(); onChanged(); return this; } /** * string owner_email = 2; * @param value The bytes for ownerEmail to set. * @return This builder for chaining. */ public Builder setOwnerEmailBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ownerEmail_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> data_; private com.google.protobuf.MapField internalGetData() { if (data_ == null) { return com.google.protobuf.MapField.emptyMapField( DataDefaultEntryHolder.defaultEntry); } return data_; } private com.google.protobuf.MapField internalGetMutableData() { onChanged();; if (data_ == null) { data_ = com.google.protobuf.MapField.newMapField( DataDefaultEntryHolder.defaultEntry); } if (!data_.isMutable()) { data_ = data_.copy(); } return data_; } public int getDataCount() { return internalGetData().getMap().size(); } /** *
     * A key-value map for any customized purpose.
     * If data already exists on the namespace, 
     * this will merge with the existing key values. 
     * 
* * map<string, string> data = 3; */ public boolean containsData( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetData().getMap().containsKey(key); } /** * Use {@link #getDataMap()} instead. */ @java.lang.Deprecated public java.util.Map getData() { return getDataMap(); } /** *
     * A key-value map for any customized purpose.
     * If data already exists on the namespace, 
     * this will merge with the existing key values. 
     * 
* * map<string, string> data = 3; */ public java.util.Map getDataMap() { return internalGetData().getMap(); } /** *
     * A key-value map for any customized purpose.
     * If data already exists on the namespace, 
     * this will merge with the existing key values. 
     * 
* * map<string, string> data = 3; */ public java.lang.String getDataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * A key-value map for any customized purpose.
     * If data already exists on the namespace, 
     * this will merge with the existing key values. 
     * 
* * map<string, string> data = 3; */ public java.lang.String getDataOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearData() { internalGetMutableData().getMutableMap() .clear(); return this; } /** *
     * A key-value map for any customized purpose.
     * If data already exists on the namespace, 
     * this will merge with the existing key values. 
     * 
* * map<string, string> data = 3; */ public Builder removeData( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableData().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableData() { return internalGetMutableData().getMutableMap(); } /** *
     * A key-value map for any customized purpose.
     * If data already exists on the namespace, 
     * this will merge with the existing key values. 
     * 
* * map<string, string> data = 3; */ public Builder putData( java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableData().getMutableMap() .put(key, value); return this; } /** *
     * A key-value map for any customized purpose.
     * If data already exists on the namespace, 
     * this will merge with the existing key values. 
     * 
* * map<string, string> data = 3; */ public Builder putAllData( java.util.Map values) { internalGetMutableData().getMutableMap() .putAll(values); return this; } private int state_ = 0; /** *
     * New namespace state, server will reject if transition is not allowed.
     * Allowed transitions are:
     *  Registered -> [ Deleted | Deprecated | Handover ]
     *  Handover -> [ Registered ]
     * Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state.
     * 
* * .temporal.api.enums.v1.NamespaceState state = 4; * @return The enum numeric value on the wire for state. */ public int getStateValue() { return state_; } /** *
     * New namespace state, server will reject if transition is not allowed.
     * Allowed transitions are:
     *  Registered -> [ Deleted | Deprecated | Handover ]
     *  Handover -> [ Registered ]
     * Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state.
     * 
* * .temporal.api.enums.v1.NamespaceState state = 4; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /** *
     * New namespace state, server will reject if transition is not allowed.
     * Allowed transitions are:
     *  Registered -> [ Deleted | Deprecated | Handover ]
     *  Handover -> [ Registered ]
     * Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state.
     * 
* * .temporal.api.enums.v1.NamespaceState state = 4; * @return The state. */ public io.temporal.api.enums.v1.NamespaceState getState() { @SuppressWarnings("deprecation") io.temporal.api.enums.v1.NamespaceState result = io.temporal.api.enums.v1.NamespaceState.valueOf(state_); return result == null ? io.temporal.api.enums.v1.NamespaceState.UNRECOGNIZED : result; } /** *
     * New namespace state, server will reject if transition is not allowed.
     * Allowed transitions are:
     *  Registered -> [ Deleted | Deprecated | Handover ]
     *  Handover -> [ Registered ]
     * Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state.
     * 
* * .temporal.api.enums.v1.NamespaceState state = 4; * @param value The state to set. * @return This builder for chaining. */ public Builder setState(io.temporal.api.enums.v1.NamespaceState value) { if (value == null) { throw new NullPointerException(); } state_ = value.getNumber(); onChanged(); return this; } /** *
     * New namespace state, server will reject if transition is not allowed.
     * Allowed transitions are:
     *  Registered -> [ Deleted | Deprecated | Handover ]
     *  Handover -> [ Registered ]
     * Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state.
     * 
* * .temporal.api.enums.v1.NamespaceState state = 4; * @return This builder for chaining. */ public Builder clearState() { state_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:temporal.api.namespace.v1.UpdateNamespaceInfo) } // @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.UpdateNamespaceInfo) private static final io.temporal.api.namespace.v1.UpdateNamespaceInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.namespace.v1.UpdateNamespaceInfo(); } public static io.temporal.api.namespace.v1.UpdateNamespaceInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateNamespaceInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateNamespaceInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.temporal.api.namespace.v1.UpdateNamespaceInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy