Package com.google.cloud.compute.v1
Class Errors.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
- com.google.cloud.compute.v1.Errors.Builder
-
- All Implemented Interfaces:
ErrorsOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Errors
public static final class Errors.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder> implements ErrorsOrBuilder
google.cloud.compute.v1.Errors
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Errors.Builder
addAllErrorDetails(Iterable<? extends ErrorDetails> values)
[Output Only] An optional list of messages that contain the error details.Errors.Builder
addErrorDetails(int index, ErrorDetails value)
[Output Only] An optional list of messages that contain the error details.Errors.Builder
addErrorDetails(int index, ErrorDetails.Builder builderForValue)
[Output Only] An optional list of messages that contain the error details.Errors.Builder
addErrorDetails(ErrorDetails value)
[Output Only] An optional list of messages that contain the error details.Errors.Builder
addErrorDetails(ErrorDetails.Builder builderForValue)
[Output Only] An optional list of messages that contain the error details.ErrorDetails.Builder
addErrorDetailsBuilder()
[Output Only] An optional list of messages that contain the error details.ErrorDetails.Builder
addErrorDetailsBuilder(int index)
[Output Only] An optional list of messages that contain the error details.Errors.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Errors
build()
Errors
buildPartial()
Errors.Builder
clear()
Errors.Builder
clearCode()
[Output Only] The error type identifier for this error.Errors.Builder
clearErrorDetails()
[Output Only] An optional list of messages that contain the error details.Errors.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Errors.Builder
clearLocation()
[Output Only] Indicates the field in the request that caused the error.Errors.Builder
clearMessage()
[Output Only] An optional, human-readable error message.Errors.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Errors.Builder
clone()
String
getCode()
[Output Only] The error type identifier for this error.com.google.protobuf.ByteString
getCodeBytes()
[Output Only] The error type identifier for this error.Errors
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ErrorDetails
getErrorDetails(int index)
[Output Only] An optional list of messages that contain the error details.ErrorDetails.Builder
getErrorDetailsBuilder(int index)
[Output Only] An optional list of messages that contain the error details.List<ErrorDetails.Builder>
getErrorDetailsBuilderList()
[Output Only] An optional list of messages that contain the error details.int
getErrorDetailsCount()
[Output Only] An optional list of messages that contain the error details.List<ErrorDetails>
getErrorDetailsList()
[Output Only] An optional list of messages that contain the error details.ErrorDetailsOrBuilder
getErrorDetailsOrBuilder(int index)
[Output Only] An optional list of messages that contain the error details.List<? extends ErrorDetailsOrBuilder>
getErrorDetailsOrBuilderList()
[Output Only] An optional list of messages that contain the error details.String
getLocation()
[Output Only] Indicates the field in the request that caused the error.com.google.protobuf.ByteString
getLocationBytes()
[Output Only] Indicates the field in the request that caused the error.String
getMessage()
[Output Only] An optional, human-readable error message.com.google.protobuf.ByteString
getMessageBytes()
[Output Only] An optional, human-readable error message.boolean
hasCode()
[Output Only] The error type identifier for this error.boolean
hasLocation()
[Output Only] Indicates the field in the request that caused the error.boolean
hasMessage()
[Output Only] An optional, human-readable error message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Errors.Builder
mergeFrom(Errors other)
Errors.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Errors.Builder
mergeFrom(com.google.protobuf.Message other)
Errors.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Errors.Builder
removeErrorDetails(int index)
[Output Only] An optional list of messages that contain the error details.Errors.Builder
setCode(String value)
[Output Only] The error type identifier for this error.Errors.Builder
setCodeBytes(com.google.protobuf.ByteString value)
[Output Only] The error type identifier for this error.Errors.Builder
setErrorDetails(int index, ErrorDetails value)
[Output Only] An optional list of messages that contain the error details.Errors.Builder
setErrorDetails(int index, ErrorDetails.Builder builderForValue)
[Output Only] An optional list of messages that contain the error details.Errors.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Errors.Builder
setLocation(String value)
[Output Only] Indicates the field in the request that caused the error.Errors.Builder
setLocationBytes(com.google.protobuf.ByteString value)
[Output Only] Indicates the field in the request that caused the error.Errors.Builder
setMessage(String value)
[Output Only] An optional, human-readable error message.Errors.Builder
setMessageBytes(com.google.protobuf.ByteString value)
[Output Only] An optional, human-readable error message.Errors.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Errors.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
clear
public Errors.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
getDefaultInstanceForType
public Errors getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Errors build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Errors buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Errors.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
setField
public Errors.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
clearField
public Errors.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
clearOneof
public Errors.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
setRepeatedField
public Errors.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
addRepeatedField
public Errors.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
mergeFrom
public Errors.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Errors.Builder>
-
mergeFrom
public Errors.Builder mergeFrom(Errors other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
mergeFrom
public Errors.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Errors.Builder>
- Throws:
IOException
-
hasCode
public boolean hasCode()
[Output Only] The error type identifier for this error.
optional string code = 3059181;
- Specified by:
hasCode
in interfaceErrorsOrBuilder
- Returns:
- Whether the code field is set.
-
getCode
public String getCode()
[Output Only] The error type identifier for this error.
optional string code = 3059181;
- Specified by:
getCode
in interfaceErrorsOrBuilder
- Returns:
- The code.
-
getCodeBytes
public com.google.protobuf.ByteString getCodeBytes()
[Output Only] The error type identifier for this error.
optional string code = 3059181;
- Specified by:
getCodeBytes
in interfaceErrorsOrBuilder
- Returns:
- The bytes for code.
-
setCode
public Errors.Builder setCode(String value)
[Output Only] The error type identifier for this error.
optional string code = 3059181;
- Parameters:
value
- The code to set.- Returns:
- This builder for chaining.
-
clearCode
public Errors.Builder clearCode()
[Output Only] The error type identifier for this error.
optional string code = 3059181;
- Returns:
- This builder for chaining.
-
setCodeBytes
public Errors.Builder setCodeBytes(com.google.protobuf.ByteString value)
[Output Only] The error type identifier for this error.
optional string code = 3059181;
- Parameters:
value
- The bytes for code to set.- Returns:
- This builder for chaining.
-
getErrorDetailsList
public List<ErrorDetails> getErrorDetailsList()
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
- Specified by:
getErrorDetailsList
in interfaceErrorsOrBuilder
-
getErrorDetailsCount
public int getErrorDetailsCount()
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
- Specified by:
getErrorDetailsCount
in interfaceErrorsOrBuilder
-
getErrorDetails
public ErrorDetails getErrorDetails(int index)
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
- Specified by:
getErrorDetails
in interfaceErrorsOrBuilder
-
setErrorDetails
public Errors.Builder setErrorDetails(int index, ErrorDetails value)
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
-
setErrorDetails
public Errors.Builder setErrorDetails(int index, ErrorDetails.Builder builderForValue)
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
-
addErrorDetails
public Errors.Builder addErrorDetails(ErrorDetails value)
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
-
addErrorDetails
public Errors.Builder addErrorDetails(int index, ErrorDetails value)
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
-
addErrorDetails
public Errors.Builder addErrorDetails(ErrorDetails.Builder builderForValue)
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
-
addErrorDetails
public Errors.Builder addErrorDetails(int index, ErrorDetails.Builder builderForValue)
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
-
addAllErrorDetails
public Errors.Builder addAllErrorDetails(Iterable<? extends ErrorDetails> values)
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
-
clearErrorDetails
public Errors.Builder clearErrorDetails()
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
-
removeErrorDetails
public Errors.Builder removeErrorDetails(int index)
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
-
getErrorDetailsBuilder
public ErrorDetails.Builder getErrorDetailsBuilder(int index)
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
-
getErrorDetailsOrBuilder
public ErrorDetailsOrBuilder getErrorDetailsOrBuilder(int index)
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
- Specified by:
getErrorDetailsOrBuilder
in interfaceErrorsOrBuilder
-
getErrorDetailsOrBuilderList
public List<? extends ErrorDetailsOrBuilder> getErrorDetailsOrBuilderList()
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
- Specified by:
getErrorDetailsOrBuilderList
in interfaceErrorsOrBuilder
-
addErrorDetailsBuilder
public ErrorDetails.Builder addErrorDetailsBuilder()
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
-
addErrorDetailsBuilder
public ErrorDetails.Builder addErrorDetailsBuilder(int index)
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
-
getErrorDetailsBuilderList
public List<ErrorDetails.Builder> getErrorDetailsBuilderList()
[Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
repeated .google.cloud.compute.v1.ErrorDetails error_details = 274653963;
-
hasLocation
public boolean hasLocation()
[Output Only] Indicates the field in the request that caused the error. This property is optional.
optional string location = 290430901;
- Specified by:
hasLocation
in interfaceErrorsOrBuilder
- Returns:
- Whether the location field is set.
-
getLocation
public String getLocation()
[Output Only] Indicates the field in the request that caused the error. This property is optional.
optional string location = 290430901;
- Specified by:
getLocation
in interfaceErrorsOrBuilder
- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()
[Output Only] Indicates the field in the request that caused the error. This property is optional.
optional string location = 290430901;
- Specified by:
getLocationBytes
in interfaceErrorsOrBuilder
- Returns:
- The bytes for location.
-
setLocation
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;
- Parameters:
value
- The location to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setLocationBytes
public Errors.Builder setLocationBytes(com.google.protobuf.ByteString value)
[Output Only] Indicates the field in the request that caused the error. This property is optional.
optional string location = 290430901;
- Parameters:
value
- The bytes for location to set.- Returns:
- This builder for chaining.
-
hasMessage
public boolean hasMessage()
[Output Only] An optional, human-readable error message.
optional string message = 418054151;
- Specified by:
hasMessage
in interfaceErrorsOrBuilder
- Returns:
- Whether the message field is set.
-
getMessage
public String getMessage()
[Output Only] An optional, human-readable error message.
optional string message = 418054151;
- Specified by:
getMessage
in interfaceErrorsOrBuilder
- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()
[Output Only] An optional, human-readable error message.
optional string message = 418054151;
- Specified by:
getMessageBytes
in interfaceErrorsOrBuilder
- Returns:
- The bytes for message.
-
setMessage
public Errors.Builder setMessage(String value)
[Output Only] An optional, human-readable error message.
optional string message = 418054151;
- Parameters:
value
- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
public Errors.Builder clearMessage()
[Output Only] An optional, human-readable error message.
optional string message = 418054151;
- Returns:
- This builder for chaining.
-
setMessageBytes
public Errors.Builder setMessageBytes(com.google.protobuf.ByteString value)
[Output Only] An optional, human-readable error message.
optional string message = 418054151;
- Parameters:
value
- The bytes for message to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Errors.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
mergeUnknownFields
public final Errors.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
-