Package com.google.rpc
Class PreconditionFailure.Violation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<PreconditionFailure.Violation,PreconditionFailure.Violation.Builder>
com.google.rpc.PreconditionFailure.Violation.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,PreconditionFailure.ViolationOrBuilder
,Cloneable
- Enclosing class:
- PreconditionFailure.Violation
public static final class PreconditionFailure.Violation.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<PreconditionFailure.Violation,PreconditionFailure.Violation.Builder>
implements PreconditionFailure.ViolationOrBuilder
A message type used to describe a single precondition failure.Protobuf type
google.rpc.PreconditionFailure.Violation
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionA description of how the precondition failed.The subject, relative to the type, that failed.The type of PreconditionFailure.A description of how the precondition failed.com.google.protobuf.ByteString
A description of how the precondition failed.The subject, relative to the type, that failed.com.google.protobuf.ByteString
The subject, relative to the type, that failed.getType()
The type of PreconditionFailure.com.google.protobuf.ByteString
The type of PreconditionFailure.setDescription
(String value) A description of how the precondition failed.setDescriptionBytes
(com.google.protobuf.ByteString value) A description of how the precondition failed.setSubject
(String value) The subject, relative to the type, that failed.setSubjectBytes
(com.google.protobuf.ByteString value) The subject, relative to the type, that failed.The type of PreconditionFailure.setTypeBytes
(com.google.protobuf.ByteString value) The type of PreconditionFailure.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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 [json_name = "type"];
- Specified by:
getType
in interfacePreconditionFailure.ViolationOrBuilder
- Returns:
- The type.
-
getTypeBytes
public 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 [json_name = "type"];
- Specified by:
getTypeBytes
in interfacePreconditionFailure.ViolationOrBuilder
- Returns:
- The bytes for type.
-
setType
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 [json_name = "type"];
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
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 [json_name = "type"];
- Returns:
- This builder for chaining.
-
setTypeBytes
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 [json_name = "type"];
- Parameters:
value
- The bytes for type to set.- Returns:
- This builder for chaining.
-
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 [json_name = "subject"];
- Specified by:
getSubject
in interfacePreconditionFailure.ViolationOrBuilder
- Returns:
- The subject.
-
getSubjectBytes
public 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 [json_name = "subject"];
- Specified by:
getSubjectBytes
in interfacePreconditionFailure.ViolationOrBuilder
- Returns:
- The bytes for subject.
-
setSubject
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 [json_name = "subject"];
- Parameters:
value
- The subject to set.- Returns:
- This builder for chaining.
-
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 [json_name = "subject"];
- Returns:
- This builder for chaining.
-
setSubjectBytes
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 [json_name = "subject"];
- Parameters:
value
- The bytes for subject to set.- Returns:
- This builder for chaining.
-
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 [json_name = "description"];
- Specified by:
getDescription
in interfacePreconditionFailure.ViolationOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public 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 [json_name = "description"];
- Specified by:
getDescriptionBytes
in interfacePreconditionFailure.ViolationOrBuilder
- Returns:
- The bytes for description.
-
setDescription
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 [json_name = "description"];
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
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 [json_name = "description"];
- Returns:
- This builder for chaining.
-
setDescriptionBytes
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 [json_name = "description"];
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-