Package com.google.cloud.dataplex.v1
Class LookupContextRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LookupContextRequest.Builder>
com.google.cloud.dataplex.v1.LookupContextRequest.Builder
- All Implemented Interfaces:
LookupContextRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LookupContextRequest
public static final class LookupContextRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LookupContextRequest.Builder>
implements LookupContextRequestOrBuilder
Lookup Context using permissions in the source system.Protobuf type
google.cloud.dataplex.v1.LookupContextRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllResources(Iterable<String> values) Required.addResources(String value) Required.addResourcesBytes(com.google.protobuf.ByteString value) Required.build()clear()Required.Required.booleancontainsOptions(String key) Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.getName()Required.com.google.protobuf.ByteStringRequired.Deprecated.intOptional.Optional.getOptionsOrDefault(String key, String defaultValue) Optional.getOptionsOrThrow(String key) Optional.getResources(int index) Required.com.google.protobuf.ByteStringgetResourcesBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(LookupContextRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllOptions(Map<String, String> values) Optional.putOptions(String key, String value) Optional.removeOptions(String key) Optional.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setResources(int index, String value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<LookupContextRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<LookupContextRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LookupContextRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LookupContextRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LookupContextRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LookupContextRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LookupContextRequest.Builder>
-
mergeFrom
public LookupContextRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LookupContextRequest.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceLookupContextRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];- Specified by:
getNameBytesin interfaceLookupContextRequestOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getResourcesList
public com.google.protobuf.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) = { ... }- Specified by:
getResourcesListin interfaceLookupContextRequestOrBuilder- Returns:
- A list containing the resources.
-
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) = { ... }- Specified by:
getResourcesCountin interfaceLookupContextRequestOrBuilder- Returns:
- The count of resources.
-
getResources
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) = { ... }- Specified by:
getResourcesin interfaceLookupContextRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The resources at the given index.
-
getResourcesBytes
public com.google.protobuf.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) = { ... }- Specified by:
getResourcesBytesin interfaceLookupContextRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resources at the given index.
-
setResources
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:
index- The index to set the value at.value- The resources to set.- Returns:
- This builder for chaining.
-
addResources
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:
value- The resources to add.- Returns:
- This builder for chaining.
-
addAllResources
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:
values- The resources to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addResourcesBytes
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:
value- The bytes of the resources to add.- Returns:
- This builder for chaining.
-
getOptionsCount
public int getOptionsCount()Description copied from interface:LookupContextRequestOrBuilderOptional. Allows to configure the context.
map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOptionsCountin interfaceLookupContextRequestOrBuilder
-
containsOptions
Optional. Allows to configure the context.
map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsOptionsin interfaceLookupContextRequestOrBuilder
-
getOptions
Deprecated.UsegetOptionsMap()instead.- Specified by:
getOptionsin interfaceLookupContextRequestOrBuilder
-
getOptionsMap
Optional. Allows to configure the context.
map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOptionsMapin interfaceLookupContextRequestOrBuilder
-
getOptionsOrDefault
Optional. Allows to configure the context.
map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOptionsOrDefaultin interfaceLookupContextRequestOrBuilder
-
getOptionsOrThrow
Optional. Allows to configure the context.
map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOptionsOrThrowin interfaceLookupContextRequestOrBuilder
-
clearOptions
-
removeOptions
Optional. Allows to configure the context.
map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableOptions
Deprecated.Use alternate mutation accessors instead. -
putOptions
Optional. Allows to configure the context.
map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL]; -
putAllOptions
Optional. Allows to configure the context.
map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];
-