Interface LookupContextRequestOrBuilder (1.86.0)

public interface LookupContextRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsOptions(String key)

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

getName()

public abstract 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 abstract 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 abstract Map<String,String> getOptions()

Use #getOptionsMap() instead.

Returns
Type Description
Map<String,String>

getOptionsCount()

public abstract int getOptionsCount()

Optional. Allows to configure the context.

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

Returns
Type Description
int

getOptionsMap()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract List<String> 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
List<String>

A list containing the resources.