程序包 com.google.rpc

# 类 LocalizedMessage.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<LocalizedMessage.Builder>
com.google.rpc.LocalizedMessage.Builder

所有已实现的接口:
  `com.google.protobuf.Message.Builder`, `com.google.protobuf.MessageLite.Builder`, `com.google.protobuf.MessageLiteOrBuilder`, `com.google.protobuf.MessageOrBuilder`, `LocalizedMessageOrBuilder`, `Cloneable`

封闭类:
  LocalizedMessage

public static final class LocalizedMessage.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LocalizedMessage.Builder> implements LocalizedMessageOrBuilder

     Provides a localized error message that is safe to return to the user
     which can be attached to an RPC error.

Protobuf type `google.rpc.LocalizedMessage`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `LocalizedMessage.Builder`
  `addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)`
  `LocalizedMessage`
  `build()`
  `LocalizedMessage`
  `buildPartial()`
  `LocalizedMessage.Builder`
  `clear()`
  `LocalizedMessage.Builder`
  `clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)`
  `LocalizedMessage.Builder`
  `clearLocale()`
  The locale used following the specification defined at http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
  `LocalizedMessage.Builder`
  `clearMessage()`
  The localized error message in the above locale.
  `LocalizedMessage.Builder`
  `clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)`
  `LocalizedMessage.Builder`
  `clone()`
  `LocalizedMessage`
  `getDefaultInstanceForType()`
  `static com.google.protobuf.Descriptors.Descriptor`
  `getDescriptor()`
  `com.google.protobuf.Descriptors.Descriptor`
  `getDescriptorForType()`
  `String`
  `getLocale()`
  The locale used following the specification defined at http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
  `com.google.protobuf.ByteString`
  `getLocaleBytes()`
  The locale used following the specification defined at http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
  `String`
  `getMessage()`
  The localized error message in the above locale.
  `com.google.protobuf.ByteString`
  `getMessageBytes()`
  The localized error message in the above locale.
  `protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable`
  `internalGetFieldAccessorTable()`
  `boolean`
  `isInitialized()`
  `LocalizedMessage.Builder`
  `mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)`
  `LocalizedMessage.Builder`
  `mergeFrom​(com.google.protobuf.Message other)`
  `LocalizedMessage.Builder`
  `mergeFrom​(LocalizedMessage other)`
  `LocalizedMessage.Builder`
  `mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)`
  `LocalizedMessage.Builder`
  `setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)`
  `LocalizedMessage.Builder`
  `setLocale​(String value)`
  The locale used following the specification defined at http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
  `LocalizedMessage.Builder`
  `setLocaleBytes​(com.google.protobuf.ByteString value)`
  The locale used following the specification defined at http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
  `LocalizedMessage.Builder`
  `setMessage​(String value)`
  The localized error message in the above locale.
  `LocalizedMessage.Builder`
  `setMessageBytes​(com.google.protobuf.ByteString value)`
  The localized error message in the above locale.
  `LocalizedMessage.Builder`
  `setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)`
  `LocalizedMessage.Builder`
  `setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)`

  ### 从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder

  `getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3`

  ### 从类继承的方法 com.google.protobuf.AbstractMessage.Builder

  `findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString`

  ### 从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder

  `addAll, addAll, mergeFrom, newUninitializedMessageException`

  ### 从类继承的方法 java.lang.Object

  `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

  ### 从接口继承的方法 com.google.protobuf.MessageLite.Builder

  `mergeFrom`

  ### 从接口继承的方法 com.google.protobuf.MessageOrBuilder

  `findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof`

- ## 方法详细资料

  - ### getDescriptor

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

  - ### internalGetFieldAccessorTable

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
    指定者:
      `internalGetFieldAccessorTable` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<LocalizedMessage.Builder>`

  - ### clear

    public LocalizedMessage.Builder clear()
    指定者:
      `clear` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `clear` 在接口中 `com.google.protobuf.MessageLite.Builder`
    覆盖:
      `clear` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<LocalizedMessage.Builder>`

  - ### getDescriptorForType

    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
    指定者:
      `getDescriptorForType` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `getDescriptorForType` 在接口中 `com.google.protobuf.MessageOrBuilder`
    覆盖:
      `getDescriptorForType` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<LocalizedMessage.Builder>`

  - ### getDefaultInstanceForType

    public LocalizedMessage getDefaultInstanceForType()
    指定者:
      `getDefaultInstanceForType` 在接口中 `com.google.protobuf.MessageLiteOrBuilder`
    指定者:
      `getDefaultInstanceForType` 在接口中 `com.google.protobuf.MessageOrBuilder`

  - ### build

    public LocalizedMessage build()
    指定者:
      `build` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `build` 在接口中 `com.google.protobuf.MessageLite.Builder`

  - ### buildPartial

    public LocalizedMessage buildPartial()
    指定者:
      `buildPartial` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `buildPartial` 在接口中 `com.google.protobuf.MessageLite.Builder`

  - ### clone

    public LocalizedMessage.Builder clone()
    指定者:
      `clone` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `clone` 在接口中 `com.google.protobuf.MessageLite.Builder`
    覆盖:
      `clone` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<LocalizedMessage.Builder>`

  - ### setField

    public LocalizedMessage.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
    指定者:
      `setField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `setField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<LocalizedMessage.Builder>`

  - ### clearField

    public LocalizedMessage.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
    指定者:
      `clearField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `clearField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<LocalizedMessage.Builder>`

  - ### clearOneof

    public LocalizedMessage.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
    指定者:
      `clearOneof` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `clearOneof` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<LocalizedMessage.Builder>`

  - ### setRepeatedField

    public LocalizedMessage.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
    指定者:
      `setRepeatedField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `setRepeatedField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<LocalizedMessage.Builder>`

  - ### addRepeatedField

    public LocalizedMessage.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
    指定者:
      `addRepeatedField` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `addRepeatedField` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<LocalizedMessage.Builder>`

  - ### mergeFrom

    public LocalizedMessage.Builder mergeFrom​(com.google.protobuf.Message other)
    指定者:
      `mergeFrom` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `mergeFrom` 在类中 `com.google.protobuf.AbstractMessage.Builder<LocalizedMessage.Builder>`

  - ### mergeFrom

    public LocalizedMessage.Builder mergeFrom​(LocalizedMessage other)

  - ### isInitialized

    public final boolean isInitialized()
    指定者:
      `isInitialized` 在接口中 `com.google.protobuf.MessageLiteOrBuilder`
    覆盖:
      `isInitialized` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<LocalizedMessage.Builder>`

  - ### mergeFrom

    public LocalizedMessage.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
    指定者:
      `mergeFrom` 在接口中 `com.google.protobuf.Message.Builder`
    指定者:
      `mergeFrom` 在接口中 `com.google.protobuf.MessageLite.Builder`
    覆盖:
      `mergeFrom` 在类中 `com.google.protobuf.AbstractMessage.Builder<LocalizedMessage.Builder>`
    抛出:
      `IOException`

  - ### getLocale

    public String getLocale()

         The locale used following the specification defined at
         http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
         Examples are: "en-US", "fr-CH", "es-MX"

    `string locale = 1;`
    指定者:
      `getLocale` 在接口中 `LocalizedMessageOrBuilder`
    返回:
      The locale.

  - ### getLocaleBytes

    public com.google.protobuf.ByteString getLocaleBytes()

         The locale used following the specification defined at
         http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
         Examples are: "en-US", "fr-CH", "es-MX"

    `string locale = 1;`
    指定者:
      `getLocaleBytes` 在接口中 `LocalizedMessageOrBuilder`
    返回:
      The bytes for locale.

  - ### setLocale

    public LocalizedMessage.Builder setLocale​(String value)

         The locale used following the specification defined at
         http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
         Examples are: "en-US", "fr-CH", "es-MX"

    `string locale = 1;`
    参数:
      `value` - The locale to set.
    返回:
      This builder for chaining.

  - ### clearLocale

    public LocalizedMessage.Builder clearLocale()

         The locale used following the specification defined at
         http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
         Examples are: "en-US", "fr-CH", "es-MX"

    `string locale = 1;`
    返回:
      This builder for chaining.

  - ### setLocaleBytes

    public LocalizedMessage.Builder setLocaleBytes​(com.google.protobuf.ByteString value)

         The locale used following the specification defined at
         http://www.rfc-editor.org/rfc/bcp/bcp47.txt.
         Examples are: "en-US", "fr-CH", "es-MX"

    `string locale = 1;`
    参数:
      `value` - The bytes for locale to set.
    返回:
      This builder for chaining.

  - ### getMessage

    public String getMessage()

         The localized error message in the above locale.

    `string message = 2;`
    指定者:
      `getMessage` 在接口中 `LocalizedMessageOrBuilder`
    返回:
      The message.

  - ### getMessageBytes

    public com.google.protobuf.ByteString getMessageBytes()

         The localized error message in the above locale.

    `string message = 2;`
    指定者:
      `getMessageBytes` 在接口中 `LocalizedMessageOrBuilder`
    返回:
      The bytes for message.

  - ### setMessage

    public LocalizedMessage.Builder setMessage​(String value)

         The localized error message in the above locale.

    `string message = 2;`
    参数:
      `value` - The message to set.
    返回:
      This builder for chaining.

  - ### clearMessage

    public LocalizedMessage.Builder clearMessage()

         The localized error message in the above locale.

    `string message = 2;`
    返回:
      This builder for chaining.

  - ### setMessageBytes

    public LocalizedMessage.Builder setMessageBytes​(com.google.protobuf.ByteString value)

         The localized error message in the above locale.

    `string message = 2;`
    参数:
      `value` - The bytes for message to set.
    返回:
      This builder for chaining.

  - ### setUnknownFields

    public final LocalizedMessage.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
    指定者:
      `setUnknownFields` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `setUnknownFields` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<LocalizedMessage.Builder>`

  - ### mergeUnknownFields

    public final LocalizedMessage.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
    指定者:
      `mergeUnknownFields` 在接口中 `com.google.protobuf.Message.Builder`
    覆盖:
      `mergeUnknownFields` 在类中 `com.google.protobuf.GeneratedMessageV3.Builder<LocalizedMessage.Builder>`