Class CreateCachedContentRequest.Builder

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

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public CreateCachedContentRequest.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<CreateCachedContentRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent resource where the cached content will be created
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateCachedContentRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource where the cached content will be created
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateCachedContentRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateCachedContentRequest.Builder setParent(String value)
       Required. The parent resource where the cached content will be created
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateCachedContentRequest.Builder clearParent()
       Required. The parent resource where the cached content will be created
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateCachedContentRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource where the cached content will be created
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasCachedContent

      public boolean hasCachedContent()
       Required. The cached content to create
       
      .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCachedContent in interface CreateCachedContentRequestOrBuilder
      Returns:
      Whether the cachedContent field is set.
    • getCachedContent

      public CachedContent getCachedContent()
       Required. The cached content to create
       
      .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCachedContent in interface CreateCachedContentRequestOrBuilder
      Returns:
      The cachedContent.
    • setCachedContent

      public CreateCachedContentRequest.Builder setCachedContent(CachedContent value)
       Required. The cached content to create
       
      .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
    • setCachedContent

      public CreateCachedContentRequest.Builder setCachedContent(CachedContent.Builder builderForValue)
       Required. The cached content to create
       
      .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeCachedContent

      public CreateCachedContentRequest.Builder mergeCachedContent(CachedContent value)
       Required. The cached content to create
       
      .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearCachedContent

      public CreateCachedContentRequest.Builder clearCachedContent()
       Required. The cached content to create
       
      .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
    • getCachedContentBuilder

      public CachedContent.Builder getCachedContentBuilder()
       Required. The cached content to create
       
      .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
    • getCachedContentOrBuilder

      public CachedContentOrBuilder getCachedContentOrBuilder()
       Required. The cached content to create
       
      .google.cloud.aiplatform.v1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCachedContentOrBuilder in interface CreateCachedContentRequestOrBuilder