Class SyntheticField.Builder (3.77.0)
public static final class SyntheticField.Builder extends GeneratedMessageV3.Builder<SyntheticField.Builder> implements SyntheticFieldOrBuilder
Represents a single named field within a SyntheticExample.
Protobuf type google.cloud.aiplatform.v1.SyntheticField
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
public static final Descriptors.Descriptor getDescriptor()
Methods
public SyntheticField.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public SyntheticField build()
public SyntheticField buildPartial()
public SyntheticField.Builder clear()
Overrides
clearContent()
public SyntheticField.Builder clearContent()
Required. The content of the field.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
public SyntheticField.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public SyntheticField.Builder clearFieldName()
Optional. The name of the field.
string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
public SyntheticField.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public SyntheticField.Builder clone()
Overrides
getContent()
public Content getContent()
Required. The content of the field.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
Content |
The content.
|
getContentBuilder()
public Content.Builder getContentBuilder()
Required. The content of the field.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
getContentOrBuilder()
public ContentOrBuilder getContentOrBuilder()
Required. The content of the field.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
public SyntheticField getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getFieldName()
Optional. The name of the field.
string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The fieldName.
|
public ByteString getFieldNameBytes()
Optional. The name of the field.
string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for fieldName.
|
hasContent()
public boolean hasContent()
Required. The content of the field.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the content field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
mergeContent(Content value)
public SyntheticField.Builder mergeContent(Content value)
Required. The content of the field.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
Content
|
public SyntheticField.Builder mergeFrom(SyntheticField other)
public SyntheticField.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public SyntheticField.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final SyntheticField.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setContent(Content value)
public SyntheticField.Builder setContent(Content value)
Required. The content of the field.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
Content
|
setContent(Content.Builder builderForValue)
public SyntheticField.Builder setContent(Content.Builder builderForValue)
Required. The content of the field.
.google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
public SyntheticField.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public SyntheticField.Builder setFieldName(String value)
Optional. The name of the field.
string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
String
The fieldName to set.
|
public SyntheticField.Builder setFieldNameBytes(ByteString value)
Optional. The name of the field.
string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
ByteString
The bytes for fieldName to set.
|
public SyntheticField.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final SyntheticField.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]