Class FileContext.Builder (0.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class FileContext.Builder extends GeneratedMessage.Builder<FileContext.Builder> implements FileContextOrBuilder
Files to be used as context. Files can be provided as raw bytes.
Protobuf type google.cloud.ces.v1beta.FileContext
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public FileContext build()
buildPartial()
public FileContext buildPartial()
clear()
public FileContext.Builder clear()
Overrides
clearFile()
public FileContext.Builder clearFile()
clearFileBytes()
public FileContext.Builder clearFileBytes()
Optional. File provided as raw bytes.
.google.cloud.ces.v1beta.FileContext.FileBytes file_bytes = 1 [(.google.api.field_behavior) = OPTIONAL];
getDefaultInstanceForType()
public FileContext getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getFileBytes()
public FileContext.FileBytes getFileBytes()
Optional. File provided as raw bytes.
.google.cloud.ces.v1beta.FileContext.FileBytes file_bytes = 1 [(.google.api.field_behavior) = OPTIONAL];
getFileBytesBuilder()
public FileContext.FileBytes.Builder getFileBytesBuilder()
Optional. File provided as raw bytes.
.google.cloud.ces.v1beta.FileContext.FileBytes file_bytes = 1 [(.google.api.field_behavior) = OPTIONAL];
getFileBytesOrBuilder()
public FileContext.FileBytesOrBuilder getFileBytesOrBuilder()
Optional. File provided as raw bytes.
.google.cloud.ces.v1beta.FileContext.FileBytes file_bytes = 1 [(.google.api.field_behavior) = OPTIONAL];
getFileCase()
public FileContext.FileCase getFileCase()
hasFileBytes()
public boolean hasFileBytes()
Optional. File provided as raw bytes.
.google.cloud.ces.v1beta.FileContext.FileBytes file_bytes = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the fileBytes field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFileBytes(FileContext.FileBytes value)
public FileContext.Builder mergeFileBytes(FileContext.FileBytes value)
Optional. File provided as raw bytes.
.google.cloud.ces.v1beta.FileContext.FileBytes file_bytes = 1 [(.google.api.field_behavior) = OPTIONAL];
mergeFrom(FileContext other)
public FileContext.Builder mergeFrom(FileContext other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FileContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public FileContext.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
setFileBytes(FileContext.FileBytes value)
public FileContext.Builder setFileBytes(FileContext.FileBytes value)
Optional. File provided as raw bytes.
.google.cloud.ces.v1beta.FileContext.FileBytes file_bytes = 1 [(.google.api.field_behavior) = OPTIONAL];
setFileBytes(FileContext.FileBytes.Builder builderForValue)
public FileContext.Builder setFileBytes(FileContext.FileBytes.Builder builderForValue)
Optional. File provided as raw bytes.
.google.cloud.ces.v1beta.FileContext.FileBytes file_bytes = 1 [(.google.api.field_behavior) = OPTIONAL];
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-30 UTC.
[null,null,["Last updated 2026-07-30 UTC."],[],[]]