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
Protobuf typegoogle.cloud.compute.v1.Errors
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Errors.BuilderaddAllErrorDetails(Iterable<? extends ErrorDetails> values)[Output Only] An optional list of messages that contain the error details.Errors.BuilderaddErrorDetails(int index, ErrorDetails value)[Output Only] An optional list of messages that contain the error details.Errors.BuilderaddErrorDetails(int index, ErrorDetails.Builder builderForValue)[Output Only] An optional list of messages that contain the error details.Errors.BuilderaddErrorDetails(ErrorDetails value)[Output Only] An optional list of messages that contain the error details.Errors.BuilderaddErrorDetails(ErrorDetails.Builder builderForValue)[Output Only] An optional list of messages that contain the error details.ErrorDetails.BuilderaddErrorDetailsBuilder()[Output Only] An optional list of messages that contain the error details.ErrorDetails.BuilderaddErrorDetailsBuilder(int index)[Output Only] An optional list of messages that contain the error details.Errors.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Errorsbuild()ErrorsbuildPartial()Errors.Builderclear()Errors.BuilderclearCode()[Output Only] The error type identifier for this error.Errors.BuilderclearErrorDetails()[Output Only] An optional list of messages that contain the error details.Errors.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Errors.BuilderclearLocation()[Output Only] Indicates the field in the request that caused the error.Errors.BuilderclearMessage()[Output Only] An optional, human-readable error message.Errors.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Errors.Builderclone()StringgetCode()[Output Only] The error type identifier for this error.com.google.protobuf.ByteStringgetCodeBytes()[Output Only] The error type identifier for this error.ErrorsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ErrorDetailsgetErrorDetails(int index)[Output Only] An optional list of messages that contain the error details.ErrorDetails.BuildergetErrorDetailsBuilder(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.intgetErrorDetailsCount()[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.ErrorDetailsOrBuildergetErrorDetailsOrBuilder(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.StringgetLocation()[Output Only] Indicates the field in the request that caused the error.com.google.protobuf.ByteStringgetLocationBytes()[Output Only] Indicates the field in the request that caused the error.StringgetMessage()[Output Only] An optional, human-readable error message.com.google.protobuf.ByteStringgetMessageBytes()[Output Only] An optional, human-readable error message.booleanhasCode()[Output Only] The error type identifier for this error.booleanhasLocation()[Output Only] Indicates the field in the request that caused the error.booleanhasMessage()[Output Only] An optional, human-readable error message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Errors.BuildermergeFrom(Errors other)Errors.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Errors.BuildermergeFrom(com.google.protobuf.Message other)Errors.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Errors.BuilderremoveErrorDetails(int index)[Output Only] An optional list of messages that contain the error details.Errors.BuildersetCode(String value)[Output Only] The error type identifier for this error.Errors.BuildersetCodeBytes(com.google.protobuf.ByteString value)[Output Only] The error type identifier for this error.Errors.BuildersetErrorDetails(int index, ErrorDetails value)[Output Only] An optional list of messages that contain the error details.Errors.BuildersetErrorDetails(int index, ErrorDetails.Builder builderForValue)[Output Only] An optional list of messages that contain the error details.Errors.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Errors.BuildersetLocation(String value)[Output Only] Indicates the field in the request that caused the error.Errors.BuildersetLocationBytes(com.google.protobuf.ByteString value)[Output Only] Indicates the field in the request that caused the error.Errors.BuildersetMessage(String value)[Output Only] An optional, human-readable error message.Errors.BuildersetMessageBytes(com.google.protobuf.ByteString value)[Output Only] An optional, human-readable error message.Errors.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Errors.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
clear
public Errors.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
getDefaultInstanceForType
public Errors getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Errors build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Errors buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Errors.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
setField
public Errors.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
clearField
public Errors.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
clearOneof
public Errors.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
setRepeatedField
public Errors.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
addRepeatedField
public Errors.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
mergeFrom
public Errors.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Errors.Builder>
-
mergeFrom
public Errors.Builder mergeFrom(Errors other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasCodein 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:
getCodein 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:
getCodeBytesin 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:
getErrorDetailsListin 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:
getErrorDetailsCountin 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:
getErrorDetailsin 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:
getErrorDetailsOrBuilderin 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:
getErrorDetailsOrBuilderListin 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:
hasLocationin 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:
getLocationin 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:
getLocationBytesin 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:
hasMessagein 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:
getMessagein 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:
getMessageBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
mergeUnknownFields
public final Errors.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Errors.Builder>
-
-