public static final class LookupContextRequest.Builder extends GeneratedMessage.Builder<LookupContextRequest.Builder> implements LookupContextRequestOrBuilderLookup Context using permissions in the source system.
Protobuf type google.cloud.dataplex.v1.LookupContextRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > LookupContextRequest.BuilderImplements
LookupContextRequestOrBuilderStatic 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 |
StringThe 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 |
ByteStringThe 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 |
|
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 |
|
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 |
intThe 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 |
intThe 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 |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public LookupContextRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
LookupContextRequest.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
intThe index to set the value at. |
value |
StringThe resources to set. |
| Returns | |
|---|---|
| Type | Description |
LookupContextRequest.Builder |
This builder for chaining. |