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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Attachment
build()
Attachment
buildPartial()
Attachment.Builder
clear()
Attachment.Builder
clearCreateTime()
Output only.Attachment.Builder
clearCreator()
Output only.Attachment.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Attachment.Builder
clearFilename()
The filename of the attachment (e.g.Attachment.Builder
clearMimeType()
Output only.Attachment.Builder
clearName()
Output only.Attachment.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Attachment.Builder
clearSizeBytes()
Output only.Attachment.Builder
clone()
com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.Actor
getCreator()
Output only.Actor.Builder
getCreatorBuilder()
Output only.ActorOrBuilder
getCreatorOrBuilder()
Output only.Attachment
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFilename()
The filename of the attachment (e.g.com.google.protobuf.ByteString
getFilenameBytes()
The filename of the attachment (e.g.String
getMimeType()
Output only.com.google.protobuf.ByteString
getMimeTypeBytes()
Output only.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.long
getSizeBytes()
Output only.boolean
hasCreateTime()
Output only.boolean
hasCreator()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Attachment.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.Attachment.Builder
mergeCreator(Actor value)
Output only.Attachment.Builder
mergeFrom(Attachment other)
Attachment.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Attachment.Builder
mergeFrom(com.google.protobuf.Message other)
Attachment.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Attachment.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.Attachment.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Attachment.Builder
setCreator(Actor value)
Output only.Attachment.Builder
setCreator(Actor.Builder builderForValue)
Output only.Attachment.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Attachment.Builder
setFilename(String value)
The filename of the attachment (e.g.Attachment.Builder
setFilenameBytes(com.google.protobuf.ByteString value)
The filename of the attachment (e.g.Attachment.Builder
setMimeType(String value)
Output only.Attachment.Builder
setMimeTypeBytes(com.google.protobuf.ByteString value)
Output only.Attachment.Builder
setName(String value)
Output only.Attachment.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.Attachment.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Attachment.Builder
setSizeBytes(long value)
Output only.Attachment.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
clear
public Attachment.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
getDefaultInstanceForType
public Attachment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Attachment build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Attachment buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Attachment.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
setField
public Attachment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
clearField
public Attachment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
clearOneof
public Attachment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
setRepeatedField
public Attachment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
addRepeatedField
public Attachment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
mergeFrom
public Attachment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Attachment.Builder>
-
mergeFrom
public Attachment.Builder mergeFrom(Attachment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in 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:
hasCreator
in 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:
getCreator
in 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:
getCreatorOrBuilder
in interfaceAttachmentOrBuilder
-
getFilename
public String getFilename()
The filename of the attachment (e.g. `"graph.jpg"`).
string filename = 4;
- Specified by:
getFilename
in 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:
getFilenameBytes
in 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:
getMimeType
in 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:
getMimeTypeBytes
in 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:
getSizeBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
mergeUnknownFields
public final Attachment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
-
-