public static final class Attachment.Builder extends GeneratedMessageV3.Builder<Attachment.Builder> implements AttachmentOrBuilder
Represents a file attached to a support case.
Protobuf type google.cloud.support.v2.Attachment
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Attachment.BuilderImplements
AttachmentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Attachment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
build()
public Attachment build()
Returns | |
---|---|
Type | Description |
Attachment |
buildPartial()
public Attachment buildPartial()
Returns | |
---|---|
Type | Description |
Attachment |
clear()
public Attachment.Builder clear()
Returns | |
---|---|
Type | Description |
Attachment.Builder |
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];
Returns | |
---|---|
Type | Description |
Attachment.Builder |
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];
Returns | |
---|---|
Type | Description |
Attachment.Builder |
clearField(Descriptors.FieldDescriptor field)
public Attachment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
clearFilename()
public Attachment.Builder clearFilename()
The filename of the attachment (e.g. "graph.jpg"
).
string filename = 4;
Returns | |
---|---|
Type | Description |
Attachment.Builder | 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 | |
---|---|
Type | Description |
Attachment.Builder | 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 | |
---|---|
Type | Description |
Attachment.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Attachment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
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 | |
---|---|
Type | Description |
Attachment.Builder | This builder for chaining. |
clone()
public Attachment.Builder clone()
Returns | |
---|---|
Type | Description |
Attachment.Builder |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time at which the attachment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public 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];
Returns | |
---|---|
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time at which the attachment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
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];
Returns | |
---|---|
Type | Description |
Actor | The creator. |
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];
Returns | |
---|---|
Type | Description |
Actor.Builder |
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];
Returns | |
---|---|
Type | Description |
ActorOrBuilder |
getDefaultInstanceForType()
public Attachment getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Attachment |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getFilename()
public String getFilename()
The filename of the attachment (e.g. "graph.jpg"
).
string filename = 4;
Returns | |
---|---|
Type | Description |
String | The filename. |
getFilenameBytes()
public ByteString getFilenameBytes()
The filename of the attachment (e.g. "graph.jpg"
).
string filename = 4;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for filename. |
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];
Returns | |
---|---|
Type | Description |
String | The mimeType. |
getMimeTypeBytes()
public ByteString getMimeTypeBytes()
Output only. The MIME type of the attachment (e.g. text/plain).
string mime_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for mimeType. |
getName()
public String getName()
Output only. The resource name of the attachment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. The resource name of the attachment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getSizeBytes()
public long getSizeBytes()
Output only. The size of the attachment in bytes.
int64 size_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
long | The sizeBytes. |
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];
Returns | |
---|---|
Type | Description |
boolean | Whether the createTime field is set. |
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];
Returns | |
---|---|
Type | Description |
boolean | Whether the creator field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public Attachment.Builder mergeCreateTime(Timestamp value)
Output only. The time at which the attachment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
mergeCreator(Actor value)
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];
Parameter | |
---|---|
Name | Description |
value | Actor |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
mergeFrom(Attachment other)
public Attachment.Builder mergeFrom(Attachment other)
Parameter | |
---|---|
Name | Description |
other | Attachment |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Attachment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Attachment.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Attachment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
setCreateTime(Timestamp value)
public Attachment.Builder setCreateTime(Timestamp value)
Output only. The time at which the attachment was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | Timestamp |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public Attachment.Builder setCreateTime(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];
Parameter | |
---|---|
Name | Description |
builderForValue | Builder |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
setCreator(Actor value)
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];
Parameter | |
---|---|
Name | Description |
value | Actor |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
setCreator(Actor.Builder builderForValue)
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];
Parameter | |
---|---|
Name | Description |
builderForValue | Actor.Builder |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Attachment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
setFilename(String value)
public Attachment.Builder setFilename(String value)
The filename of the attachment (e.g. "graph.jpg"
).
string filename = 4;
Parameter | |
---|---|
Name | Description |
value | String The filename to set. |
Returns | |
---|---|
Type | Description |
Attachment.Builder | This builder for chaining. |
setFilenameBytes(ByteString value)
public Attachment.Builder setFilenameBytes(ByteString value)
The filename of the attachment (e.g. "graph.jpg"
).
string filename = 4;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for filename to set. |
Returns | |
---|---|
Type | Description |
Attachment.Builder | This builder for chaining. |
setMimeType(String value)
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];
Parameter | |
---|---|
Name | Description |
value | String The mimeType to set. |
Returns | |
---|---|
Type | Description |
Attachment.Builder | This builder for chaining. |
setMimeTypeBytes(ByteString value)
public Attachment.Builder setMimeTypeBytes(ByteString value)
Output only. The MIME type of the attachment (e.g. text/plain).
string mime_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for mimeType to set. |
Returns | |
---|---|
Type | Description |
Attachment.Builder | This builder for chaining. |
setName(String value)
public Attachment.Builder setName(String value)
Output only. The resource name of the attachment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
Attachment.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Attachment.Builder setNameBytes(ByteString value)
Output only. The resource name of the attachment.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
Attachment.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Attachment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
Attachment.Builder |
setSizeBytes(long value)
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];
Parameter | |
---|---|
Name | Description |
value | long The sizeBytes to set. |
Returns | |
---|---|
Type | Description |
Attachment.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Attachment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Attachment.Builder |