Class Media (3.6.0)

public final class Media extends GeneratedMessageV3 implements MediaOrBuilder

Represents media information.

Protobuf type google.cloud.channel.v1.Media

Implements

MediaOrBuilder

Static Fields

CONTENT_FIELD_NUMBER

public static final int CONTENT_FIELD_NUMBER
Field Value
TypeDescription
int

TITLE_FIELD_NUMBER

public static final int TITLE_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Media getDefaultInstance()
Returns
TypeDescription
Media

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Media.Builder newBuilder()
Returns
TypeDescription
Media.Builder

newBuilder(Media prototype)

public static Media.Builder newBuilder(Media prototype)
Parameter
NameDescription
prototypeMedia
Returns
TypeDescription
Media.Builder

parseDelimitedFrom(InputStream input)

public static Media parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Media
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Media parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Media
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Media parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Media
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Media parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Media
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Media parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Media
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Media parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Media
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Media parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Media
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Media parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Media
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Media parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Media
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Media parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Media
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Media parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Media
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Media parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Media
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Media> parser()
Returns
TypeDescription
Parser<Media>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getContent()

public String getContent()

URL of the media.

string content = 2;

Returns
TypeDescription
String

The content.

getContentBytes()

public ByteString getContentBytes()

URL of the media.

string content = 2;

Returns
TypeDescription
ByteString

The bytes for content.

getDefaultInstanceForType()

public Media getDefaultInstanceForType()
Returns
TypeDescription
Media

getParserForType()

public Parser<Media> getParserForType()
Returns
TypeDescription
Parser<Media>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTitle()

public String getTitle()

Title of the media.

string title = 1;

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Title of the media.

string title = 1;

Returns
TypeDescription
ByteString

The bytes for title.

getType()

public MediaType getType()

Type of the media.

.google.cloud.channel.v1.MediaType type = 3;

Returns
TypeDescription
MediaType

The type.

getTypeValue()

public int getTypeValue()

Type of the media.

.google.cloud.channel.v1.MediaType type = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Media.Builder newBuilderForType()
Returns
TypeDescription
Media.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Media.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Media.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Media.Builder toBuilder()
Returns
TypeDescription
Media.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException