public static final class Errors.Builder extends GeneratedMessageV3.Builder<Errors.Builder> implements ErrorsOrBuilder Protobuf type google.cloud.compute.v1.Errors
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Errors.BuilderImplements
ErrorsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Errors.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| Errors.Builder |
build()
public Errors build()| Type | Description |
| Errors |
buildPartial()
public Errors buildPartial()| Type | Description |
| Errors |
clear()
public Errors.Builder clear()| Type | Description |
| Errors.Builder |
clearCode()
public Errors.Builder clearCode()[Output Only] The error type identifier for this error.
optional string code = 3059181;
| Type | Description |
| Errors.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Errors.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| Errors.Builder |
clearLocation()
public Errors.Builder clearLocation()[Output Only] Indicates the field in the request that caused the error. This property is optional.
optional string location = 290430901;
| Type | Description |
| Errors.Builder | This builder for chaining. |
clearMessage()
public Errors.Builder clearMessage()[Output Only] An optional, human-readable error message.
optional string message = 418054151;
| Type | Description |
| Errors.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Errors.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| Errors.Builder |
clone()
public Errors.Builder clone()| Type | Description |
| Errors.Builder |
getCode()
public String getCode()[Output Only] The error type identifier for this error.
optional string code = 3059181;
| Type | Description |
| String | The code. |
getCodeBytes()
public ByteString getCodeBytes()[Output Only] The error type identifier for this error.
optional string code = 3059181;
| Type | Description |
| ByteString | The bytes for code. |
getDefaultInstanceForType()
public Errors getDefaultInstanceForType()| Type | Description |
| Errors |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getLocation()
public String getLocation()[Output Only] Indicates the field in the request that caused the error. This property is optional.
optional string location = 290430901;
| Type | Description |
| String | The location. |
getLocationBytes()
public ByteString getLocationBytes()[Output Only] Indicates the field in the request that caused the error. This property is optional.
optional string location = 290430901;
| Type | Description |
| ByteString | The bytes for location. |
getMessage()
public String getMessage()[Output Only] An optional, human-readable error message.
optional string message = 418054151;
| Type | Description |
| String | The message. |
getMessageBytes()
public ByteString getMessageBytes()[Output Only] An optional, human-readable error message.
optional string message = 418054151;
| Type | Description |
| ByteString | The bytes for message. |
hasCode()
public boolean hasCode()[Output Only] The error type identifier for this error.
optional string code = 3059181;
| Type | Description |
| boolean | Whether the code field is set. |
hasLocation()
public boolean hasLocation()[Output Only] Indicates the field in the request that caused the error. This property is optional.
optional string location = 290430901;
| Type | Description |
| boolean | Whether the location field is set. |
hasMessage()
public boolean hasMessage()[Output Only] An optional, human-readable error message.
optional string message = 418054151;
| Type | Description |
| boolean | Whether the message field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(Errors other)
public Errors.Builder mergeFrom(Errors other)| Name | Description |
| other | Errors |
| Type | Description |
| Errors.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Errors.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| Errors.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public Errors.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| Errors.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Errors.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| Errors.Builder |
setCode(String value)
public Errors.Builder setCode(String value)[Output Only] The error type identifier for this error.
optional string code = 3059181;
| Name | Description |
| value | StringThe code to set. |
| Type | Description |
| Errors.Builder | This builder for chaining. |
setCodeBytes(ByteString value)
public Errors.Builder setCodeBytes(ByteString value)[Output Only] The error type identifier for this error.
optional string code = 3059181;
| Name | Description |
| value | ByteStringThe bytes for code to set. |
| Type | Description |
| Errors.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Errors.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| Errors.Builder |
setLocation(String value)
public Errors.Builder setLocation(String value)[Output Only] Indicates the field in the request that caused the error. This property is optional.
optional string location = 290430901;
| Name | Description |
| value | StringThe location to set. |
| Type | Description |
| Errors.Builder | This builder for chaining. |
setLocationBytes(ByteString value)
public Errors.Builder setLocationBytes(ByteString value)[Output Only] Indicates the field in the request that caused the error. This property is optional.
optional string location = 290430901;
| Name | Description |
| value | ByteStringThe bytes for location to set. |
| Type | Description |
| Errors.Builder | This builder for chaining. |
setMessage(String value)
public Errors.Builder setMessage(String value)[Output Only] An optional, human-readable error message.
optional string message = 418054151;
| Name | Description |
| value | StringThe message to set. |
| Type | Description |
| Errors.Builder | This builder for chaining. |
setMessageBytes(ByteString value)
public Errors.Builder setMessageBytes(ByteString value)[Output Only] An optional, human-readable error message.
optional string message = 418054151;
| Name | Description |
| value | ByteStringThe bytes for message to set. |
| Type | Description |
| Errors.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Errors.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| Errors.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Errors.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| Errors.Builder |