Class LookupContextRequest (1.86.0)

public final class LookupContextRequest extends GeneratedMessage implements LookupContextRequestOrBuilder

Lookup Context using permissions in the source system.

Protobuf type google.cloud.dataplex.v1.LookupContextRequest

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

OPTIONS_FIELD_NUMBER

public static final int OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

RESOURCES_FIELD_NUMBER

public static final int RESOURCES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LookupContextRequest getDefaultInstance()
Returns
Type Description
LookupContextRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static LookupContextRequest.Builder newBuilder()
Returns
Type Description
LookupContextRequest.Builder

newBuilder(LookupContextRequest prototype)

public static LookupContextRequest.Builder newBuilder(LookupContextRequest prototype)
Parameter
Name Description
prototype LookupContextRequest
Returns
Type Description
LookupContextRequest.Builder

parseDelimitedFrom(InputStream input)

public static LookupContextRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LookupContextRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LookupContextRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupContextRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LookupContextRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LookupContextRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LookupContextRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupContextRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LookupContextRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LookupContextRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LookupContextRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupContextRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LookupContextRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LookupContextRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LookupContextRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupContextRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LookupContextRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LookupContextRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LookupContextRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupContextRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LookupContextRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LookupContextRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LookupContextRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupContextRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LookupContextRequest> parser()
Returns
Type Description
Parser<LookupContextRequest>

Methods

containsOptions(String key)

public boolean containsOptions(String key)

Optional. Allows to configure the context.

map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public LookupContextRequest getDefaultInstanceForType()
Returns
Type Description
LookupContextRequest

getName()

public String getName()

Required. The project to which the request should be attributed in the following form: projects/{project}/locations/{location}.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The project to which the request should be attributed in the following form: projects/{project}/locations/{location}.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getOptions() (deprecated)

public Map<String,String> getOptions()

Use #getOptionsMap() instead.

Returns
Type Description
Map<String,String>

getOptionsCount()

public int getOptionsCount()

Optional. Allows to configure the context.

map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getOptionsMap()

public Map<String,String> getOptionsMap()

Optional. Allows to configure the context.

map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getOptionsOrDefault(String key, String defaultValue)

public String getOptionsOrDefault(String key, String defaultValue)

Optional. Allows to configure the context.

map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getOptionsOrThrow(String key)

public String getOptionsOrThrow(String key)

Optional. Allows to configure the context.

map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getParserForType()

public Parser<LookupContextRequest> getParserForType()
Returns
Type Description
Parser<LookupContextRequest>
Overrides

getResources(int index)

public String getResources(int index)

Required. The entry names to lookup context for. The request should have max 10 of those.

Examples:

projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}

repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The resources at the given index.

getResourcesBytes(int index)

public ByteString getResourcesBytes(int index)

Required. The entry names to lookup context for. The request should have max 10 of those.

Examples:

projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}

repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the resources at the given index.

getResourcesCount()

public int getResourcesCount()

Required. The entry names to lookup context for. The request should have max 10 of those.

Examples:

projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}

repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of resources.

getResourcesList()

public ProtocolStringList getResourcesList()

Required. The entry names to lookup context for. The request should have max 10 of those.

Examples:

projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}

repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the resources.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LookupContextRequest.Builder newBuilderForType()
Returns
Type Description
LookupContextRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected LookupContextRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LookupContextRequest.Builder
Overrides

toBuilder()

public LookupContextRequest.Builder toBuilder()
Returns
Type Description
LookupContextRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException