public static final class ContentMap.Contents.Builder extends GeneratedMessage.Builder<ContentMap.Contents.Builder> implements ContentMap.ContentsOrBuilder
Repeated Content type.
Protobuf type google.cloud.aiplatform.v1beta1.ContentMap.Contents
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
addAllContents(Iterable<? extends Content> values)
public ContentMap.Contents.Builder addAllContents(Iterable<? extends Content> values)
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.aiplatform.v1beta1.Content>
|
addContents(Content value)
public ContentMap.Contents.Builder addContents(Content value)
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
value |
Content
|
addContents(Content.Builder builderForValue)
public ContentMap.Contents.Builder addContents(Content.Builder builderForValue)
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
addContents(int index, Content value)
public ContentMap.Contents.Builder addContents(int index, Content value)
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters |
| Name |
Description |
index |
int
|
value |
Content
|
addContents(int index, Content.Builder builderForValue)
public ContentMap.Contents.Builder addContents(int index, Content.Builder builderForValue)
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
addContentsBuilder()
public Content.Builder addContentsBuilder()
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
addContentsBuilder(int index)
public Content.Builder addContentsBuilder(int index)
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
build()
public ContentMap.Contents build()
buildPartial()
public ContentMap.Contents buildPartial()
clear()
public ContentMap.Contents.Builder clear()
Overrides
clearContents()
public ContentMap.Contents.Builder clearContents()
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
getContents(int index)
public Content getContents(int index)
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getContentsBuilder(int index)
public Content.Builder getContentsBuilder(int index)
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getContentsBuilderList()
public List<Content.Builder> getContentsBuilderList()
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
getContentsCount()
public int getContentsCount()
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getContentsList()
public List<Content> getContentsList()
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
getContentsOrBuilder(int index)
public ContentOrBuilder getContentsOrBuilder(int index)
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getContentsOrBuilderList()
public List<? extends ContentOrBuilder> getContentsOrBuilderList()
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> |
|
getDefaultInstanceForType()
public ContentMap.Contents getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ContentMap.Contents other)
public ContentMap.Contents.Builder mergeFrom(ContentMap.Contents other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ContentMap.Contents.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ContentMap.Contents.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
removeContents(int index)
public ContentMap.Contents.Builder removeContents(int index)
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
setContents(int index, Content value)
public ContentMap.Contents.Builder setContents(int index, Content value)
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameters |
| Name |
Description |
index |
int
|
value |
Content
|
setContents(int index, Content.Builder builderForValue)
public ContentMap.Contents.Builder setContents(int index, Content.Builder builderForValue)
Optional. Repeated contents.
repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL];