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
  • Method Details

    • getType

      public 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 [json_name = "type"];
      Specified by:
      getType in interface PreconditionFailure.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 interface PreconditionFailure.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

      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 [json_name = "type"];
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getSubject

      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 [json_name = "subject"];
      Specified by:
      getSubject in interface PreconditionFailure.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 interface PreconditionFailure.ViolationOrBuilder
      Returns:
      The bytes for subject.
    • setSubject

      public 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 [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

      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 [json_name = "subject"];
      Parameters:
      value - The bytes for subject to set.
      Returns:
      This builder for chaining.
    • getDescription

      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 [json_name = "description"];
      Specified by:
      getDescription in interface PreconditionFailure.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 interface PreconditionFailure.ViolationOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public 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 [json_name = "description"];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      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 [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.