main.java.com.streamlayer.sdkSettings.common.AdvertisingImage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: streamlayer/sdkSettings/sdkSettings.common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sdkSettings.common;
/**
* Protobuf type {@code streamlayer.sdkSettings.AdvertisingImage}
*/
public final class AdvertisingImage extends
com.google.protobuf.GeneratedMessageLite<
AdvertisingImage, AdvertisingImage.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sdkSettings.AdvertisingImage)
AdvertisingImageOrBuilder {
private AdvertisingImage() {
name_ = "";
previewUrl_ = "";
fileUrl_ = "";
}
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.String name_;
/**
* string name = 1 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return name_;
}
/**
* string name = 1 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(name_);
}
/**
* string name = 1 [json_name = "name"];
* @param value The name to set.
*/
private void setName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
name_ = value;
}
/**
* string name = 1 [json_name = "name"];
*/
private void clearName() {
name_ = getDefaultInstance().getName();
}
/**
* string name = 1 [json_name = "name"];
* @param value The bytes for name to set.
*/
private void setNameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
name_ = value.toStringUtf8();
}
public static final int PREVIEW_URL_FIELD_NUMBER = 2;
private java.lang.String previewUrl_;
/**
* string preview_url = 2 [json_name = "previewUrl"];
* @return The previewUrl.
*/
@java.lang.Override
public java.lang.String getPreviewUrl() {
return previewUrl_;
}
/**
* string preview_url = 2 [json_name = "previewUrl"];
* @return The bytes for previewUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPreviewUrlBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(previewUrl_);
}
/**
* string preview_url = 2 [json_name = "previewUrl"];
* @param value The previewUrl to set.
*/
private void setPreviewUrl(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
previewUrl_ = value;
}
/**
* string preview_url = 2 [json_name = "previewUrl"];
*/
private void clearPreviewUrl() {
previewUrl_ = getDefaultInstance().getPreviewUrl();
}
/**
* string preview_url = 2 [json_name = "previewUrl"];
* @param value The bytes for previewUrl to set.
*/
private void setPreviewUrlBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
previewUrl_ = value.toStringUtf8();
}
public static final int FILE_URL_FIELD_NUMBER = 3;
private java.lang.String fileUrl_;
/**
* string file_url = 3 [json_name = "fileUrl"];
* @return The fileUrl.
*/
@java.lang.Override
public java.lang.String getFileUrl() {
return fileUrl_;
}
/**
* string file_url = 3 [json_name = "fileUrl"];
* @return The bytes for fileUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFileUrlBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(fileUrl_);
}
/**
* string file_url = 3 [json_name = "fileUrl"];
* @param value The fileUrl to set.
*/
private void setFileUrl(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
fileUrl_ = value;
}
/**
* string file_url = 3 [json_name = "fileUrl"];
*/
private void clearFileUrl() {
fileUrl_ = getDefaultInstance().getFileUrl();
}
/**
* string file_url = 3 [json_name = "fileUrl"];
* @param value The bytes for fileUrl to set.
*/
private void setFileUrlBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
fileUrl_ = value.toStringUtf8();
}
public static final int PLACEMENT_FIELD_NUMBER = 4;
private int placement_;
/**
* .streamlayer.sdkSettings.AdvertisingPlacement placement = 4 [json_name = "placement"];
* @return The enum numeric value on the wire for placement.
*/
@java.lang.Override
public int getPlacementValue() {
return placement_;
}
/**
* .streamlayer.sdkSettings.AdvertisingPlacement placement = 4 [json_name = "placement"];
* @return The placement.
*/
@java.lang.Override
public com.streamlayer.sdkSettings.common.AdvertisingPlacement getPlacement() {
com.streamlayer.sdkSettings.common.AdvertisingPlacement result = com.streamlayer.sdkSettings.common.AdvertisingPlacement.forNumber(placement_);
return result == null ? com.streamlayer.sdkSettings.common.AdvertisingPlacement.UNRECOGNIZED : result;
}
/**
* .streamlayer.sdkSettings.AdvertisingPlacement placement = 4 [json_name = "placement"];
* @param value The enum numeric value on the wire for placement to set.
*/
private void setPlacementValue(int value) {
placement_ = value;
}
/**
* .streamlayer.sdkSettings.AdvertisingPlacement placement = 4 [json_name = "placement"];
* @param value The placement to set.
*/
private void setPlacement(com.streamlayer.sdkSettings.common.AdvertisingPlacement value) {
placement_ = value.getNumber();
}
/**
* .streamlayer.sdkSettings.AdvertisingPlacement placement = 4 [json_name = "placement"];
*/
private void clearPlacement() {
placement_ = 0;
}
public static com.streamlayer.sdkSettings.common.AdvertisingImage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sdkSettings.common.AdvertisingImage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.sdkSettings.common.AdvertisingImage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sdkSettings.common.AdvertisingImage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.sdkSettings.common.AdvertisingImage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sdkSettings.common.AdvertisingImage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.sdkSettings.common.AdvertisingImage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.common.AdvertisingImage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.sdkSettings.common.AdvertisingImage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.common.AdvertisingImage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.sdkSettings.common.AdvertisingImage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.common.AdvertisingImage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.streamlayer.sdkSettings.common.AdvertisingImage prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sdkSettings.AdvertisingImage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sdkSettings.common.AdvertisingImage, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sdkSettings.AdvertisingImage)
com.streamlayer.sdkSettings.common.AdvertisingImageOrBuilder {
// Construct using com.streamlayer.sdkSettings.common.AdvertisingImage.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string name = 1 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return instance.getName();
}
/**
* string name = 1 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return instance.getNameBytes();
}
/**
* string name = 1 [json_name = "name"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
copyOnWrite();
instance.setName(value);
return this;
}
/**
* string name = 1 [json_name = "name"];
* @return This builder for chaining.
*/
public Builder clearName() {
copyOnWrite();
instance.clearName();
return this;
}
/**
* string name = 1 [json_name = "name"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setNameBytes(value);
return this;
}
/**
* string preview_url = 2 [json_name = "previewUrl"];
* @return The previewUrl.
*/
@java.lang.Override
public java.lang.String getPreviewUrl() {
return instance.getPreviewUrl();
}
/**
* string preview_url = 2 [json_name = "previewUrl"];
* @return The bytes for previewUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPreviewUrlBytes() {
return instance.getPreviewUrlBytes();
}
/**
* string preview_url = 2 [json_name = "previewUrl"];
* @param value The previewUrl to set.
* @return This builder for chaining.
*/
public Builder setPreviewUrl(
java.lang.String value) {
copyOnWrite();
instance.setPreviewUrl(value);
return this;
}
/**
* string preview_url = 2 [json_name = "previewUrl"];
* @return This builder for chaining.
*/
public Builder clearPreviewUrl() {
copyOnWrite();
instance.clearPreviewUrl();
return this;
}
/**
* string preview_url = 2 [json_name = "previewUrl"];
* @param value The bytes for previewUrl to set.
* @return This builder for chaining.
*/
public Builder setPreviewUrlBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setPreviewUrlBytes(value);
return this;
}
/**
* string file_url = 3 [json_name = "fileUrl"];
* @return The fileUrl.
*/
@java.lang.Override
public java.lang.String getFileUrl() {
return instance.getFileUrl();
}
/**
* string file_url = 3 [json_name = "fileUrl"];
* @return The bytes for fileUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFileUrlBytes() {
return instance.getFileUrlBytes();
}
/**
* string file_url = 3 [json_name = "fileUrl"];
* @param value The fileUrl to set.
* @return This builder for chaining.
*/
public Builder setFileUrl(
java.lang.String value) {
copyOnWrite();
instance.setFileUrl(value);
return this;
}
/**
* string file_url = 3 [json_name = "fileUrl"];
* @return This builder for chaining.
*/
public Builder clearFileUrl() {
copyOnWrite();
instance.clearFileUrl();
return this;
}
/**
* string file_url = 3 [json_name = "fileUrl"];
* @param value The bytes for fileUrl to set.
* @return This builder for chaining.
*/
public Builder setFileUrlBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setFileUrlBytes(value);
return this;
}
/**
* .streamlayer.sdkSettings.AdvertisingPlacement placement = 4 [json_name = "placement"];
* @return The enum numeric value on the wire for placement.
*/
@java.lang.Override
public int getPlacementValue() {
return instance.getPlacementValue();
}
/**
* .streamlayer.sdkSettings.AdvertisingPlacement placement = 4 [json_name = "placement"];
* @param value The placement to set.
* @return This builder for chaining.
*/
public Builder setPlacementValue(int value) {
copyOnWrite();
instance.setPlacementValue(value);
return this;
}
/**
* .streamlayer.sdkSettings.AdvertisingPlacement placement = 4 [json_name = "placement"];
* @return The placement.
*/
@java.lang.Override
public com.streamlayer.sdkSettings.common.AdvertisingPlacement getPlacement() {
return instance.getPlacement();
}
/**
* .streamlayer.sdkSettings.AdvertisingPlacement placement = 4 [json_name = "placement"];
* @param value The enum numeric value on the wire for placement to set.
* @return This builder for chaining.
*/
public Builder setPlacement(com.streamlayer.sdkSettings.common.AdvertisingPlacement value) {
copyOnWrite();
instance.setPlacement(value);
return this;
}
/**
* .streamlayer.sdkSettings.AdvertisingPlacement placement = 4 [json_name = "placement"];
* @return This builder for chaining.
*/
public Builder clearPlacement() {
copyOnWrite();
instance.clearPlacement();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sdkSettings.AdvertisingImage)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.streamlayer.sdkSettings.common.AdvertisingImage();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"name_",
"previewUrl_",
"fileUrl_",
"placement_",
};
java.lang.String info =
"\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
"\u0003\u0208\u0004\f";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.streamlayer.sdkSettings.common.AdvertisingImage.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:streamlayer.sdkSettings.AdvertisingImage)
private static final com.streamlayer.sdkSettings.common.AdvertisingImage DEFAULT_INSTANCE;
static {
AdvertisingImage defaultInstance = new AdvertisingImage();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
AdvertisingImage.class, defaultInstance);
}
public static com.streamlayer.sdkSettings.common.AdvertisingImage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}