Class RequestOptions.ClientContext

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.spanner.v1.RequestOptions.ClientContext
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RequestOptions.ClientContextOrBuilder, Serializable
Enclosing class:
RequestOptions

public static final class RequestOptions.ClientContext extends com.google.protobuf.GeneratedMessage implements RequestOptions.ClientContextOrBuilder
 Container for various pieces of client-owned context attached to a request.
 
Protobuf type google.spanner.v1.RequestOptions.ClientContext
See Also:
  • Field Details

    • SECURE_CONTEXT_FIELD_NUMBER

      public static final int SECURE_CONTEXT_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getSecureContextCount

      public int getSecureContextCount()
      Description copied from interface: RequestOptions.ClientContextOrBuilder
       Optional. Map of parameter name to value for this request. These values
       will be returned by any SECURE_CONTEXT() calls invoked by this request
       (e.g., by queries against Parameterized Secure Views).
       
      map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSecureContextCount in interface RequestOptions.ClientContextOrBuilder
    • containsSecureContext

      public boolean containsSecureContext(String key)
       Optional. Map of parameter name to value for this request. These values
       will be returned by any SECURE_CONTEXT() calls invoked by this request
       (e.g., by queries against Parameterized Secure Views).
       
      map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsSecureContext in interface RequestOptions.ClientContextOrBuilder
    • getSecureContext

      @Deprecated public Map<String,com.google.protobuf.Value> getSecureContext()
      Deprecated.
      Specified by:
      getSecureContext in interface RequestOptions.ClientContextOrBuilder
    • getSecureContextMap

      public Map<String,com.google.protobuf.Value> getSecureContextMap()
       Optional. Map of parameter name to value for this request. These values
       will be returned by any SECURE_CONTEXT() calls invoked by this request
       (e.g., by queries against Parameterized Secure Views).
       
      map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSecureContextMap in interface RequestOptions.ClientContextOrBuilder
    • getSecureContextOrDefault

      public com.google.protobuf.Value getSecureContextOrDefault(String key, com.google.protobuf.Value defaultValue)
       Optional. Map of parameter name to value for this request. These values
       will be returned by any SECURE_CONTEXT() calls invoked by this request
       (e.g., by queries against Parameterized Secure Views).
       
      map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSecureContextOrDefault in interface RequestOptions.ClientContextOrBuilder
    • getSecureContextOrThrow

      public com.google.protobuf.Value getSecureContextOrThrow(String key)
       Optional. Map of parameter name to value for this request. These values
       will be returned by any SECURE_CONTEXT() calls invoked by this request
       (e.g., by queries against Parameterized Secure Views).
       
      map<string, .google.protobuf.Value> secure_context = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSecureContextOrThrow in interface RequestOptions.ClientContextOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RequestOptions.ClientContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RequestOptions.ClientContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RequestOptions.ClientContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RequestOptions.ClientContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RequestOptions.ClientContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RequestOptions.ClientContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RequestOptions.ClientContext parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RequestOptions.ClientContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RequestOptions.ClientContext parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RequestOptions.ClientContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RequestOptions.ClientContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RequestOptions.ClientContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RequestOptions.ClientContext.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RequestOptions.ClientContext.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RequestOptions.ClientContext.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RequestOptions.ClientContext getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RequestOptions.ClientContext> parser()
    • getParserForType

      public com.google.protobuf.Parser<RequestOptions.ClientContext> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RequestOptions.ClientContext getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder