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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<LookupContextRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<LookupContextRequest.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<LookupContextRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<LookupContextRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<LookupContextRequest.Builder>
    • getDefaultInstanceForType

      public LookupContextRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public LookupContextRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public LookupContextRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public LookupContextRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LookupContextRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LookupContextRequest.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getName in interface LookupContextRequestOrBuilder
      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:
      getNameBytes in interface LookupContextRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public LookupContextRequest.Builder setNameBytes(com.google.protobuf.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];
      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:
      getResourcesList in interface LookupContextRequestOrBuilder
      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:
      getResourcesCount in interface LookupContextRequestOrBuilder
      Returns:
      The count of resources.
    • getResources

      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) = { ... }
      Specified by:
      getResources in interface LookupContextRequestOrBuilder
      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:
      getResourcesBytes in interface LookupContextRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the resources at the given index.
    • setResources

      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:
      index - The index to set the value at.
      value - The resources to set.
      Returns:
      This builder for chaining.
    • addResources

      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) = { ... }
      Parameters:
      value - The resources to add.
      Returns:
      This builder for chaining.
    • addAllResources

      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) = { ... }
      Parameters:
      values - The resources to add.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • addResourcesBytes

      public LookupContextRequest.Builder addResourcesBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes of the resources to add.
      Returns:
      This builder for chaining.
    • getOptionsCount

      public int getOptionsCount()
      Description copied from interface: LookupContextRequestOrBuilder
       Optional. Allows to configure the context.
       
      map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOptionsCount in interface LookupContextRequestOrBuilder
    • containsOptions

      public boolean containsOptions(String key)
       Optional. Allows to configure the context.
       
      map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsOptions in interface LookupContextRequestOrBuilder
    • getOptions

      @Deprecated public Map<String,String> getOptions()
      Deprecated.
      Use getOptionsMap() instead.
      Specified by:
      getOptions in interface LookupContextRequestOrBuilder
    • getOptionsMap

      public Map<String,String> getOptionsMap()
       Optional. Allows to configure the context.
       
      map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOptionsMap in interface LookupContextRequestOrBuilder
    • getOptionsOrDefault

      public String getOptionsOrDefault(String key, String defaultValue)
       Optional. Allows to configure the context.
       
      map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOptionsOrDefault in interface LookupContextRequestOrBuilder
    • getOptionsOrThrow

      public String getOptionsOrThrow(String key)
       Optional. Allows to configure the context.
       
      map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOptionsOrThrow in interface LookupContextRequestOrBuilder
    • clearOptions

      public LookupContextRequest.Builder clearOptions()
    • removeOptions

      public LookupContextRequest.Builder removeOptions(String key)
       Optional. Allows to configure the context.
       
      map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableOptions

      @Deprecated public Map<String,String> getMutableOptions()
      Deprecated.
      Use alternate mutation accessors instead.
    • putOptions

      public LookupContextRequest.Builder putOptions(String key, String value)
       Optional. Allows to configure the context.
       
      map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];
    • putAllOptions

      public LookupContextRequest.Builder putAllOptions(Map<String,String> values)
       Optional. Allows to configure the context.
       
      map<string, string> options = 4 [(.google.api.field_behavior) = OPTIONAL];