Package com.google.cloud.support.v2
Class Attachment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
- com.google.cloud.support.v2.Attachment.Builder
-
- All Implemented Interfaces:
AttachmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Attachment
public static final class Attachment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder> implements AttachmentOrBuilder
Represents a file attached to a support case.
Protobuf typegoogle.cloud.support.v2.Attachment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Attachment.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Attachmentbuild()AttachmentbuildPartial()Attachment.Builderclear()Attachment.BuilderclearCreateTime()Output only.Attachment.BuilderclearCreator()Output only.Attachment.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Attachment.BuilderclearFilename()The filename of the attachment (e.g.Attachment.BuilderclearMimeType()Output only.Attachment.BuilderclearName()Output only.Attachment.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Attachment.BuilderclearSizeBytes()Output only.Attachment.Builderclone()com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.ActorgetCreator()Output only.Actor.BuildergetCreatorBuilder()Output only.ActorOrBuildergetCreatorOrBuilder()Output only.AttachmentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFilename()The filename of the attachment (e.g.com.google.protobuf.ByteStringgetFilenameBytes()The filename of the attachment (e.g.StringgetMimeType()Output only.com.google.protobuf.ByteStringgetMimeTypeBytes()Output only.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.longgetSizeBytes()Output only.booleanhasCreateTime()Output only.booleanhasCreator()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Attachment.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.Attachment.BuildermergeCreator(Actor value)Output only.Attachment.BuildermergeFrom(Attachment other)Attachment.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Attachment.BuildermergeFrom(com.google.protobuf.Message other)Attachment.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Attachment.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.Attachment.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Attachment.BuildersetCreator(Actor value)Output only.Attachment.BuildersetCreator(Actor.Builder builderForValue)Output only.Attachment.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Attachment.BuildersetFilename(String value)The filename of the attachment (e.g.Attachment.BuildersetFilenameBytes(com.google.protobuf.ByteString value)The filename of the attachment (e.g.Attachment.BuildersetMimeType(String value)Output only.Attachment.BuildersetMimeTypeBytes(com.google.protobuf.ByteString value)Output only.Attachment.BuildersetName(String value)Output only.Attachment.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.Attachment.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Attachment.BuildersetSizeBytes(long value)Output only.Attachment.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
clear
public Attachment.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
getDefaultInstanceForType
public Attachment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Attachment build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Attachment buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Attachment.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
setField
public Attachment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
clearField
public Attachment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
clearOneof
public Attachment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
setRepeatedField
public Attachment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
addRepeatedField
public Attachment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
mergeFrom
public Attachment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Attachment.Builder>
-
mergeFrom
public Attachment.Builder mergeFrom(Attachment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
mergeFrom
public Attachment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Attachment.Builder>- Throws:
IOException
-
getName
public String getName()
Output only. The resource name of the attachment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceAttachmentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The resource name of the attachment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceAttachmentOrBuilder- Returns:
- The bytes for name.
-
setName
public Attachment.Builder setName(String value)
Output only. The resource name of the attachment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Attachment.Builder clearName()
Output only. The resource name of the attachment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
public Attachment.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. The resource name of the attachment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time at which the attachment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceAttachmentOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time at which the attachment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceAttachmentOrBuilder- Returns:
- The createTime.
-
setCreateTime
public Attachment.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time at which the attachment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Attachment.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time at which the attachment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Attachment.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time at which the attachment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public Attachment.Builder clearCreateTime()
Output only. The time at which the attachment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time at which the attachment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time at which the attachment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceAttachmentOrBuilder
-
hasCreator
public boolean hasCreator()
Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.
.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreatorin interfaceAttachmentOrBuilder- Returns:
- Whether the creator field is set.
-
getCreator
public Actor getCreator()
Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.
.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreatorin interfaceAttachmentOrBuilder- Returns:
- The creator.
-
setCreator
public Attachment.Builder setCreator(Actor value)
Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.
.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreator
public Attachment.Builder setCreator(Actor.Builder builderForValue)
Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.
.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreator
public Attachment.Builder mergeCreator(Actor value)
Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.
.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreator
public Attachment.Builder clearCreator()
Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.
.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreatorBuilder
public Actor.Builder getCreatorBuilder()
Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.
.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreatorOrBuilder
public ActorOrBuilder getCreatorOrBuilder()
Output only. The user who uploaded the attachment. Note, the name and email will be obfuscated if the attachment was uploaded by Google support.
.google.cloud.support.v2.Actor creator = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreatorOrBuilderin interfaceAttachmentOrBuilder
-
getFilename
public String getFilename()
The filename of the attachment (e.g. `"graph.jpg"`).
string filename = 4;- Specified by:
getFilenamein interfaceAttachmentOrBuilder- Returns:
- The filename.
-
getFilenameBytes
public com.google.protobuf.ByteString getFilenameBytes()
The filename of the attachment (e.g. `"graph.jpg"`).
string filename = 4;- Specified by:
getFilenameBytesin interfaceAttachmentOrBuilder- Returns:
- The bytes for filename.
-
setFilename
public Attachment.Builder setFilename(String value)
The filename of the attachment (e.g. `"graph.jpg"`).
string filename = 4;- Parameters:
value- The filename to set.- Returns:
- This builder for chaining.
-
clearFilename
public Attachment.Builder clearFilename()
The filename of the attachment (e.g. `"graph.jpg"`).
string filename = 4;- Returns:
- This builder for chaining.
-
setFilenameBytes
public Attachment.Builder setFilenameBytes(com.google.protobuf.ByteString value)
The filename of the attachment (e.g. `"graph.jpg"`).
string filename = 4;- Parameters:
value- The bytes for filename to set.- Returns:
- This builder for chaining.
-
getMimeType
public String getMimeType()
Output only. The MIME type of the attachment (e.g. text/plain).
string mime_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMimeTypein interfaceAttachmentOrBuilder- Returns:
- The mimeType.
-
getMimeTypeBytes
public com.google.protobuf.ByteString getMimeTypeBytes()
Output only. The MIME type of the attachment (e.g. text/plain).
string mime_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getMimeTypeBytesin interfaceAttachmentOrBuilder- Returns:
- The bytes for mimeType.
-
setMimeType
public Attachment.Builder setMimeType(String value)
Output only. The MIME type of the attachment (e.g. text/plain).
string mime_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The mimeType to set.- Returns:
- This builder for chaining.
-
clearMimeType
public Attachment.Builder clearMimeType()
Output only. The MIME type of the attachment (e.g. text/plain).
string mime_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setMimeTypeBytes
public Attachment.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
Output only. The MIME type of the attachment (e.g. text/plain).
string mime_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for mimeType to set.- Returns:
- This builder for chaining.
-
getSizeBytes
public long getSizeBytes()
Output only. The size of the attachment in bytes.
int64 size_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSizeBytesin interfaceAttachmentOrBuilder- Returns:
- The sizeBytes.
-
setSizeBytes
public Attachment.Builder setSizeBytes(long value)
Output only. The size of the attachment in bytes.
int64 size_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The sizeBytes to set.- Returns:
- This builder for chaining.
-
clearSizeBytes
public Attachment.Builder clearSizeBytes()
Output only. The size of the attachment in bytes.
int64 size_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
public final Attachment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
mergeUnknownFields
public final Attachment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
-