Class UpdateContextRequest.Builder

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

public static final class UpdateContextRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateContextRequest.Builder> implements UpdateContextRequestOrBuilder
 Request message for
 [MetadataService.UpdateContext][google.cloud.aiplatform.v1.MetadataService.UpdateContext].
 
Protobuf type google.cloud.aiplatform.v1.UpdateContextRequest
  • 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<UpdateContextRequest.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<UpdateContextRequest.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<UpdateContextRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public UpdateContextRequest.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<UpdateContextRequest.Builder>
      Throws:
      IOException
    • hasContext

      public boolean hasContext()
       Required. The Context containing updates.
       The Context's [Context.name][google.cloud.aiplatform.v1.Context.name] field
       is used to identify the Context to be updated. Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      .google.cloud.aiplatform.v1.Context context = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasContext in interface UpdateContextRequestOrBuilder
      Returns:
      Whether the context field is set.
    • getContext

      public Context getContext()
       Required. The Context containing updates.
       The Context's [Context.name][google.cloud.aiplatform.v1.Context.name] field
       is used to identify the Context to be updated. Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      .google.cloud.aiplatform.v1.Context context = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContext in interface UpdateContextRequestOrBuilder
      Returns:
      The context.
    • setContext

      public UpdateContextRequest.Builder setContext(Context value)
       Required. The Context containing updates.
       The Context's [Context.name][google.cloud.aiplatform.v1.Context.name] field
       is used to identify the Context to be updated. Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      .google.cloud.aiplatform.v1.Context context = 1 [(.google.api.field_behavior) = REQUIRED];
    • setContext

      public UpdateContextRequest.Builder setContext(Context.Builder builderForValue)
       Required. The Context containing updates.
       The Context's [Context.name][google.cloud.aiplatform.v1.Context.name] field
       is used to identify the Context to be updated. Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      .google.cloud.aiplatform.v1.Context context = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeContext

      public UpdateContextRequest.Builder mergeContext(Context value)
       Required. The Context containing updates.
       The Context's [Context.name][google.cloud.aiplatform.v1.Context.name] field
       is used to identify the Context to be updated. Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      .google.cloud.aiplatform.v1.Context context = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearContext

      public UpdateContextRequest.Builder clearContext()
       Required. The Context containing updates.
       The Context's [Context.name][google.cloud.aiplatform.v1.Context.name] field
       is used to identify the Context to be updated. Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      .google.cloud.aiplatform.v1.Context context = 1 [(.google.api.field_behavior) = REQUIRED];
    • getContextBuilder

      public Context.Builder getContextBuilder()
       Required. The Context containing updates.
       The Context's [Context.name][google.cloud.aiplatform.v1.Context.name] field
       is used to identify the Context to be updated. Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      .google.cloud.aiplatform.v1.Context context = 1 [(.google.api.field_behavior) = REQUIRED];
    • getContextOrBuilder

      public ContextOrBuilder getContextOrBuilder()
       Required. The Context containing updates.
       The Context's [Context.name][google.cloud.aiplatform.v1.Context.name] field
       is used to identify the Context to be updated. Format:
       `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
       
      .google.cloud.aiplatform.v1.Context context = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContextOrBuilder in interface UpdateContextRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Optional. A FieldMask indicating which fields should be updated.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasUpdateMask in interface UpdateContextRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Optional. A FieldMask indicating which fields should be updated.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMask in interface UpdateContextRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateContextRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Optional. A FieldMask indicating which fields should be updated.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setUpdateMask

      public UpdateContextRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Optional. A FieldMask indicating which fields should be updated.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeUpdateMask

      public UpdateContextRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Optional. A FieldMask indicating which fields should be updated.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearUpdateMask

      public UpdateContextRequest.Builder clearUpdateMask()
       Optional. A FieldMask indicating which fields should be updated.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Optional. A FieldMask indicating which fields should be updated.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Optional. A FieldMask indicating which fields should be updated.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateContextRequestOrBuilder
    • getAllowMissing

      public boolean getAllowMissing()
       If set to true, and the [Context][google.cloud.aiplatform.v1.Context] is
       not found, a new [Context][google.cloud.aiplatform.v1.Context] is created.
       
      bool allow_missing = 3;
      Specified by:
      getAllowMissing in interface UpdateContextRequestOrBuilder
      Returns:
      The allowMissing.
    • setAllowMissing

      public UpdateContextRequest.Builder setAllowMissing(boolean value)
       If set to true, and the [Context][google.cloud.aiplatform.v1.Context] is
       not found, a new [Context][google.cloud.aiplatform.v1.Context] is created.
       
      bool allow_missing = 3;
      Parameters:
      value - The allowMissing to set.
      Returns:
      This builder for chaining.
    • clearAllowMissing

      public UpdateContextRequest.Builder clearAllowMissing()
       If set to true, and the [Context][google.cloud.aiplatform.v1.Context] is
       not found, a new [Context][google.cloud.aiplatform.v1.Context] is created.
       
      bool allow_missing = 3;
      Returns:
      This builder for chaining.