public static final class CreateCachedContentRequest.Builder extends GeneratedMessageV3.Builder<CreateCachedContentRequest.Builder> implements CreateCachedContentRequestOrBuilder
Request message for
GenAiCacheService.CreateCachedContent.
Protobuf type google.cloud.aiplatform.v1beta1.CreateCachedContentRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateCachedContentRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateCachedContentRequest build()
buildPartial()
public CreateCachedContentRequest buildPartial()
clear()
public CreateCachedContentRequest.Builder clear()
Overrides
clearCachedContent()
public CreateCachedContentRequest.Builder clearCachedContent()
Required. The cached content to create
.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public CreateCachedContentRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateCachedContentRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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) = { ... }
clone()
public CreateCachedContentRequest.Builder clone()
Overrides
getCachedContent()
public CachedContent getCachedContent()
Required. The cached content to create
.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
getCachedContentBuilder()
public CachedContent.Builder getCachedContentBuilder()
Required. The cached content to create
.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
getCachedContentOrBuilder()
public CachedContentOrBuilder getCachedContentOrBuilder()
Required. The cached content to create
.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public CreateCachedContentRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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) = { ... }
Returns |
Type |
Description |
String |
The parent.
|
getParentBytes()
public 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) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for parent.
|
hasCachedContent()
public boolean hasCachedContent()
Required. The cached content to create
.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the cachedContent field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeCachedContent(CachedContent value)
public CreateCachedContentRequest.Builder mergeCachedContent(CachedContent value)
Required. The cached content to create
.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
mergeFrom(CreateCachedContentRequest other)
public CreateCachedContentRequest.Builder mergeFrom(CreateCachedContentRequest other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateCachedContentRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateCachedContentRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateCachedContentRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setCachedContent(CachedContent value)
public CreateCachedContentRequest.Builder setCachedContent(CachedContent value)
Required. The cached content to create
.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
setCachedContent(CachedContent.Builder builderForValue)
public CreateCachedContentRequest.Builder setCachedContent(CachedContent.Builder builderForValue)
Required. The cached content to create
.google.cloud.aiplatform.v1beta1.CachedContent cached_content = 2 [(.google.api.field_behavior) = REQUIRED];
setField(Descriptors.FieldDescriptor field, Object value)
public CreateCachedContentRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setParent(String value)
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) = { ... }
Parameter |
Name |
Description |
value |
String
The parent to set.
|
setParentBytes(ByteString value)
public CreateCachedContentRequest.Builder setParentBytes(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) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for parent to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateCachedContentRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateCachedContentRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides