Package gql

Class GqlTypes.GqlStatus.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GqlTypes.GqlStatus.Builder>
gql.GqlTypes.GqlStatus.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GqlTypes.GqlStatusOrBuilder, Cloneable
Enclosing class:
GqlTypes.GqlStatus

public static final class GqlTypes.GqlStatus.Builder extends com.google.protobuf.GeneratedMessage.Builder<GqlTypes.GqlStatus.Builder> implements GqlTypes.GqlStatusOrBuilder
 Status code from a GQL operation.
 
Protobuf type gql.GqlStatus
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GqlTypes.GqlStatus.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GqlTypes.GqlStatus.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GqlTypes.GqlStatus.Builder>
    • getDefaultInstanceForType

      public GqlTypes.GqlStatus getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GqlTypes.GqlStatus build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GqlTypes.GqlStatus buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GqlTypes.GqlStatus.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GqlTypes.GqlStatus.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GqlTypes.GqlStatus.Builder>
    • mergeFrom

      public GqlTypes.GqlStatus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GqlTypes.GqlStatus.Builder>
      Throws:
      IOException
    • getCode

      public String getCode()
       5-char GQLSTATUS code
       
      string code = 1;
      Specified by:
      getCode in interface GqlTypes.GqlStatusOrBuilder
      Returns:
      The code.
    • getCodeBytes

      public com.google.protobuf.ByteString getCodeBytes()
       5-char GQLSTATUS code
       
      string code = 1;
      Specified by:
      getCodeBytes in interface GqlTypes.GqlStatusOrBuilder
      Returns:
      The bytes for code.
    • setCode

      public GqlTypes.GqlStatus.Builder setCode(String value)
       5-char GQLSTATUS code
       
      string code = 1;
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public GqlTypes.GqlStatus.Builder clearCode()
       5-char GQLSTATUS code
       
      string code = 1;
      Returns:
      This builder for chaining.
    • setCodeBytes

      public GqlTypes.GqlStatus.Builder setCodeBytes(com.google.protobuf.ByteString value)
       5-char GQLSTATUS code
       
      string code = 1;
      Parameters:
      value - The bytes for code to set.
      Returns:
      This builder for chaining.
    • getMessage

      public String getMessage()
       Human-readable description
       
      string message = 2;
      Specified by:
      getMessage in interface GqlTypes.GqlStatusOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       Human-readable description
       
      string message = 2;
      Specified by:
      getMessageBytes in interface GqlTypes.GqlStatusOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public GqlTypes.GqlStatus.Builder setMessage(String value)
       Human-readable description
       
      string message = 2;
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

      public GqlTypes.GqlStatus.Builder clearMessage()
       Human-readable description
       
      string message = 2;
      Returns:
      This builder for chaining.
    • setMessageBytes

      public GqlTypes.GqlStatus.Builder setMessageBytes(com.google.protobuf.ByteString value)
       Human-readable description
       
      string message = 2;
      Parameters:
      value - The bytes for message to set.
      Returns:
      This builder for chaining.
    • hasDiagnostic

      public boolean hasDiagnostic()
       Optional diagnostic context
       
      .gql.DiagnosticRecord diagnostic = 3;
      Specified by:
      hasDiagnostic in interface GqlTypes.GqlStatusOrBuilder
      Returns:
      Whether the diagnostic field is set.
    • getDiagnostic

      public GqlTypes.DiagnosticRecord getDiagnostic()
       Optional diagnostic context
       
      .gql.DiagnosticRecord diagnostic = 3;
      Specified by:
      getDiagnostic in interface GqlTypes.GqlStatusOrBuilder
      Returns:
      The diagnostic.
    • setDiagnostic

       Optional diagnostic context
       
      .gql.DiagnosticRecord diagnostic = 3;
    • setDiagnostic

      public GqlTypes.GqlStatus.Builder setDiagnostic(GqlTypes.DiagnosticRecord.Builder builderForValue)
       Optional diagnostic context
       
      .gql.DiagnosticRecord diagnostic = 3;
    • mergeDiagnostic

      public GqlTypes.GqlStatus.Builder mergeDiagnostic(GqlTypes.DiagnosticRecord value)
       Optional diagnostic context
       
      .gql.DiagnosticRecord diagnostic = 3;
    • clearDiagnostic

      public GqlTypes.GqlStatus.Builder clearDiagnostic()
       Optional diagnostic context
       
      .gql.DiagnosticRecord diagnostic = 3;
    • getDiagnosticBuilder

      public GqlTypes.DiagnosticRecord.Builder getDiagnosticBuilder()
       Optional diagnostic context
       
      .gql.DiagnosticRecord diagnostic = 3;
    • getDiagnosticOrBuilder

      public GqlTypes.DiagnosticRecordOrBuilder getDiagnosticOrBuilder()
       Optional diagnostic context
       
      .gql.DiagnosticRecord diagnostic = 3;
      Specified by:
      getDiagnosticOrBuilder in interface GqlTypes.GqlStatusOrBuilder
    • hasCause

      public boolean hasCause()
       Optional chained cause
       
      .gql.GqlStatus cause = 4;
      Specified by:
      hasCause in interface GqlTypes.GqlStatusOrBuilder
      Returns:
      Whether the cause field is set.
    • getCause

      public GqlTypes.GqlStatus getCause()
       Optional chained cause
       
      .gql.GqlStatus cause = 4;
      Specified by:
      getCause in interface GqlTypes.GqlStatusOrBuilder
      Returns:
      The cause.
    • setCause

       Optional chained cause
       
      .gql.GqlStatus cause = 4;
    • setCause

      public GqlTypes.GqlStatus.Builder setCause(GqlTypes.GqlStatus.Builder builderForValue)
       Optional chained cause
       
      .gql.GqlStatus cause = 4;
    • mergeCause

       Optional chained cause
       
      .gql.GqlStatus cause = 4;
    • clearCause

      public GqlTypes.GqlStatus.Builder clearCause()
       Optional chained cause
       
      .gql.GqlStatus cause = 4;
    • getCauseBuilder

      public GqlTypes.GqlStatus.Builder getCauseBuilder()
       Optional chained cause
       
      .gql.GqlStatus cause = 4;
    • getCauseOrBuilder

      public GqlTypes.GqlStatusOrBuilder getCauseOrBuilder()
       Optional chained cause
       
      .gql.GqlStatus cause = 4;
      Specified by:
      getCauseOrBuilder in interface GqlTypes.GqlStatusOrBuilder