Class LookupContextRequest.Builder (1.86.0)

public static final class LookupContextRequest.Builder extends GeneratedMessage.Builder<LookupContextRequest.Builder> implements LookupContextRequestOrBuilder

Lookup Context using permissions in the source system.

Protobuf type google.cloud.dataplex.v1.LookupContextRequest

Static Methods

getDescriptor()

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

Methods

addAllResources(Iterable<String> values)

public LookupContextRequest.Builder addAllResources(Iterable<String> values)

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
values Iterable<String>

The resources to add.

Returns
Type Description
LookupContextRequest.Builder

This builder for chaining.

addResources(String value)

public LookupContextRequest.Builder addResources(String value)

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
value String

The resources to add.

Returns
Type Description
LookupContextRequest.Builder

This builder for chaining.

addResourcesBytes(ByteString value)

public LookupContextRequest.Builder addResourcesBytes(ByteString value)

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
value ByteString

The bytes of the resources to add.

Returns
Type Description
LookupContextRequest.Builder

This builder for chaining.

build()

public LookupContextRequest build()
Returns
Type Description
LookupContextRequest

buildPartial()

public LookupContextRequest buildPartial()
Returns
Type Description
LookupContextRequest

clear()

public LookupContextRequest.Builder clear()
Returns
Type Description
LookupContextRequest.Builder
Overrides

clearName()

public LookupContextRequest.Builder clearName()

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
LookupContextRequest.Builder

This builder for chaining.

clearOptions()

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

clearResources()

public LookupContextRequest.Builder clearResources()

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
LookupContextRequest.Builder

This builder for chaining.

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

getDefaultInstanceForType()

public LookupContextRequest getDefaultInstanceForType()
Returns
Type Description
LookupContextRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableOptions() (deprecated)

public Map<String,String> getMutableOptions()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

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

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.

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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LookupContextRequest other)

public LookupContextRequest.Builder mergeFrom(LookupContextRequest other)
Parameter
Name Description
other LookupContextRequest
Returns
Type Description
LookupContextRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LookupContextRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupContextRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LookupContextRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LookupContextRequest.Builder
Overrides

putAllOptions(Map<String,String> values)

public LookupContextRequest.Builder putAllOptions(Map<String,String> values)

Optional. Allows to configure the context.

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

Parameter
Name Description
values Map<String,String>
Returns
Type Description
LookupContextRequest.Builder

putOptions(String key, String value)

public LookupContextRequest.Builder putOptions(String key, String value)

Optional. Allows to configure the context.

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

Parameters
Name Description
key String
value String
Returns
Type Description
LookupContextRequest.Builder

removeOptions(String key)

public LookupContextRequest.Builder removeOptions(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
LookupContextRequest.Builder

setName(String value)

public LookupContextRequest.Builder setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
LookupContextRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LookupContextRequest.Builder setNameBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
LookupContextRequest.Builder

This builder for chaining.

setResources(int index, String value)

public LookupContextRequest.Builder setResources(int index, String value)

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) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The resources to set.

Returns
Type Description
LookupContextRequest.Builder

This builder for chaining.