Class AddContextChildrenRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AddContextChildrenRequest.Builder>
com.google.cloud.aiplatform.v1.AddContextChildrenRequest.Builder
All Implemented Interfaces:
AddContextChildrenRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AddContextChildrenRequest

public static final class AddContextChildrenRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<AddContextChildrenRequest.Builder> implements AddContextChildrenRequestOrBuilder
 Request message for
 [MetadataService.AddContextChildren][google.cloud.aiplatform.v1.MetadataService.AddContextChildren].
 
Protobuf type google.cloud.aiplatform.v1.AddContextChildrenRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AddContextChildrenRequest.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<AddContextChildrenRequest.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<AddContextChildrenRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public AddContextChildrenRequest.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<AddContextChildrenRequest.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<AddContextChildrenRequest.Builder>
    • mergeFrom

      public AddContextChildrenRequest.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<AddContextChildrenRequest.Builder>
      Throws:
      IOException
    • getContext

      public String getContext()
       Required. The resource name of the parent Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getContext in interface AddContextChildrenRequestOrBuilder
      Returns:
      The context.
    • getContextBytes

      public com.google.protobuf.ByteString getContextBytes()
       Required. The resource name of the parent Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getContextBytes in interface AddContextChildrenRequestOrBuilder
      Returns:
      The bytes for context.
    • setContext

      public AddContextChildrenRequest.Builder setContext(String value)
       Required. The resource name of the parent Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The context to set.
      Returns:
      This builder for chaining.
    • clearContext

      public AddContextChildrenRequest.Builder clearContext()
       Required. The resource name of the parent Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setContextBytes

      public AddContextChildrenRequest.Builder setContextBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the parent Context.
      
       Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      string context = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for context to set.
      Returns:
      This builder for chaining.
    • getChildContextsList

      public com.google.protobuf.ProtocolStringList getChildContextsList()
       The resource names of the child Contexts.
       
      repeated string child_contexts = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getChildContextsList in interface AddContextChildrenRequestOrBuilder
      Returns:
      A list containing the childContexts.
    • getChildContextsCount

      public int getChildContextsCount()
       The resource names of the child Contexts.
       
      repeated string child_contexts = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getChildContextsCount in interface AddContextChildrenRequestOrBuilder
      Returns:
      The count of childContexts.
    • getChildContexts

      public String getChildContexts(int index)
       The resource names of the child Contexts.
       
      repeated string child_contexts = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getChildContexts in interface AddContextChildrenRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The childContexts at the given index.
    • getChildContextsBytes

      public com.google.protobuf.ByteString getChildContextsBytes(int index)
       The resource names of the child Contexts.
       
      repeated string child_contexts = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getChildContextsBytes in interface AddContextChildrenRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the childContexts at the given index.
    • setChildContexts

      public AddContextChildrenRequest.Builder setChildContexts(int index, String value)
       The resource names of the child Contexts.
       
      repeated string child_contexts = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The childContexts to set.
      Returns:
      This builder for chaining.
    • addChildContexts

      public AddContextChildrenRequest.Builder addChildContexts(String value)
       The resource names of the child Contexts.
       
      repeated string child_contexts = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The childContexts to add.
      Returns:
      This builder for chaining.
    • addAllChildContexts

      public AddContextChildrenRequest.Builder addAllChildContexts(Iterable<String> values)
       The resource names of the child Contexts.
       
      repeated string child_contexts = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      values - The childContexts to add.
      Returns:
      This builder for chaining.
    • clearChildContexts

      public AddContextChildrenRequest.Builder clearChildContexts()
       The resource names of the child Contexts.
       
      repeated string child_contexts = 2 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addChildContextsBytes

      public AddContextChildrenRequest.Builder addChildContextsBytes(com.google.protobuf.ByteString value)
       The resource names of the child Contexts.
       
      repeated string child_contexts = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the childContexts to add.
      Returns:
      This builder for chaining.