public static final class PreconditionFailure.Violation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Violation.Builder> implements PreconditionFailure.ViolationOrBuilder
A message type used to describe a single precondition failure.Protobuf type
google.rpc.PreconditionFailure.Violation| 限定符和类型 | 方法和说明 |
|---|---|
PreconditionFailure.Violation |
build() |
PreconditionFailure.Violation |
buildPartial() |
PreconditionFailure.Violation.Builder |
clear() |
PreconditionFailure.Violation.Builder |
clearDescription()
A description of how the precondition failed.
|
PreconditionFailure.Violation.Builder |
clearSubject()
The subject, relative to the type, that failed.
|
PreconditionFailure.Violation.Builder |
clearType()
The type of PreconditionFailure.
|
PreconditionFailure.Violation |
getDefaultInstanceForType() |
String |
getDescription()
A description of how the precondition failed.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
A description of how the precondition failed.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getSubject()
The subject, relative to the type, that failed.
|
com.google.protobuf.ByteString |
getSubjectBytes()
The subject, relative to the type, that failed.
|
String |
getType()
The type of PreconditionFailure.
|
com.google.protobuf.ByteString |
getTypeBytes()
The type of PreconditionFailure.
|
boolean |
isInitialized() |
PreconditionFailure.Violation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PreconditionFailure.Violation.Builder |
mergeFrom(com.google.protobuf.Message other) |
PreconditionFailure.Violation.Builder |
mergeFrom(PreconditionFailure.Violation other) |
PreconditionFailure.Violation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PreconditionFailure.Violation.Builder |
setDescription(String value)
A description of how the precondition failed.
|
PreconditionFailure.Violation.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
A description of how the precondition failed.
|
PreconditionFailure.Violation.Builder |
setSubject(String value)
The subject, relative to the type, that failed.
|
PreconditionFailure.Violation.Builder |
setSubjectBytes(com.google.protobuf.ByteString value)
The subject, relative to the type, that failed.
|
PreconditionFailure.Violation.Builder |
setType(String value)
The type of PreconditionFailure.
|
PreconditionFailure.Violation.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
The type of PreconditionFailure.
|
PreconditionFailure.Violation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForField, setField, setRepeatedFieldfindInitializationErrors, getInitializationErrorString, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toStringmergeDelimitedFrom, mergeDelimitedFrom, mergeFrompublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public PreconditionFailure.Violation.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Violation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Violation.Builder>public PreconditionFailure.Violation getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic PreconditionFailure.Violation build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic PreconditionFailure.Violation buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic PreconditionFailure.Violation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<PreconditionFailure.Violation.Builder>public PreconditionFailure.Violation.Builder mergeFrom(PreconditionFailure.Violation other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Violation.Builder>public PreconditionFailure.Violation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<PreconditionFailure.Violation.Builder>IOExceptionpublic String getType()
The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation".
string type = 1;getType 在接口中 PreconditionFailure.ViolationOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation".
string type = 1;getTypeBytes 在接口中 PreconditionFailure.ViolationOrBuilderpublic PreconditionFailure.Violation.Builder setType(String value)
The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation".
string type = 1;value - The type to set.public PreconditionFailure.Violation.Builder clearType()
The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation".
string type = 1;public PreconditionFailure.Violation.Builder setTypeBytes(com.google.protobuf.ByteString value)
The type of PreconditionFailure. We recommend using a service-specific enum type to define the supported precondition violation subjects. For example, "TOS" for "Terms of Service violation".
string type = 1;value - The bytes for type to set.public String getSubject()
The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced.
string subject = 2;getSubject 在接口中 PreconditionFailure.ViolationOrBuilderpublic com.google.protobuf.ByteString getSubjectBytes()
The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced.
string subject = 2;getSubjectBytes 在接口中 PreconditionFailure.ViolationOrBuilderpublic PreconditionFailure.Violation.Builder setSubject(String value)
The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced.
string subject = 2;value - The subject to set.public PreconditionFailure.Violation.Builder clearSubject()
The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced.
string subject = 2;public PreconditionFailure.Violation.Builder setSubjectBytes(com.google.protobuf.ByteString value)
The subject, relative to the type, that failed. For example, "google.com/cloud" relative to the "TOS" type would indicate which terms of service is being referenced.
string subject = 2;value - The bytes for subject to set.public String getDescription()
A description of how the precondition failed. Developers can use this description to understand how to fix the failure. For example: "Terms of service not accepted".
string description = 3;getDescription 在接口中 PreconditionFailure.ViolationOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
A description of how the precondition failed. Developers can use this description to understand how to fix the failure. For example: "Terms of service not accepted".
string description = 3;getDescriptionBytes 在接口中 PreconditionFailure.ViolationOrBuilderpublic PreconditionFailure.Violation.Builder setDescription(String value)
A description of how the precondition failed. Developers can use this description to understand how to fix the failure. For example: "Terms of service not accepted".
string description = 3;value - The description to set.public PreconditionFailure.Violation.Builder clearDescription()
A description of how the precondition failed. Developers can use this description to understand how to fix the failure. For example: "Terms of service not accepted".
string description = 3;public PreconditionFailure.Violation.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A description of how the precondition failed. Developers can use this description to understand how to fix the failure. For example: "Terms of service not accepted".
string description = 3;value - The bytes for description to set.public final PreconditionFailure.Violation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Violation.Builder>public final PreconditionFailure.Violation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<PreconditionFailure.Violation.Builder>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.