public final class MediaLocation extends GeneratedMessage implements MediaLocationOrBuilder
Config that associates a media location with a security policy and the
authentication credentials needed to access the content.
Protobuf type google.ads.admanager.v1.MediaLocation
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int SECURITY_POLICY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int URL_PREFIX_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static MediaLocation getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static MediaLocation.Builder newBuilder()
public static MediaLocation.Builder newBuilder(MediaLocation prototype)
public static MediaLocation parseDelimitedFrom(InputStream input)
public static MediaLocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MediaLocation parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static MediaLocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MediaLocation parseFrom(ByteString data)
public static MediaLocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MediaLocation parseFrom(CodedInputStream input)
public static MediaLocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MediaLocation parseFrom(InputStream input)
public static MediaLocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MediaLocation parseFrom(ByteBuffer data)
public static MediaLocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<MediaLocation> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public MediaLocation getDefaultInstanceForType()
public String getDisplayName()
Output only. The name of the media location. This value is read-only and is
assigned by Google.
optional string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The displayName.
|
public ByteString getDisplayNameBytes()
Output only. The name of the media location. This value is read-only and is
assigned by Google.
optional string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for displayName.
|
public Parser<MediaLocation> getParserForType()
Overrides
public CdnSecurityPolicy getSecurityPolicy()
Optional. The security policy and authentication credentials needed to
access the content in this media location. Optional; if omitted, no
security policy will be applied (indicating a public/unprotected location).
Must NOT be configured for ad media delivery locations (doing so will
trigger a validation error).
.google.ads.admanager.v1.CdnSecurityPolicy security_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
public CdnSecurityPolicyOrBuilder getSecurityPolicyOrBuilder()
Optional. The security policy and authentication credentials needed to
access the content in this media location. Optional; if omitted, no
security policy will be applied (indicating a public/unprotected location).
Must NOT be configured for ad media delivery locations (doing so will
trigger a validation error).
.google.ads.admanager.v1.CdnSecurityPolicy security_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public String getUrlPrefix()
Required. The URL prefix of the media location. This value is required for
a valid media location.
optional string url_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
String |
The urlPrefix.
|
public ByteString getUrlPrefixBytes()
Required. The URL prefix of the media location. This value is required for
a valid media location.
optional string url_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
ByteString |
The bytes for urlPrefix.
|
public boolean hasDisplayName()
Output only. The name of the media location. This value is read-only and is
assigned by Google.
optional string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the displayName field is set.
|
public boolean hasSecurityPolicy()
Optional. The security policy and authentication credentials needed to
access the content in this media location. Optional; if omitted, no
security policy will be applied (indicating a public/unprotected location).
Must NOT be configured for ad media delivery locations (doing so will
trigger a validation error).
.google.ads.admanager.v1.CdnSecurityPolicy security_policy = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the securityPolicy field is set.
|
public boolean hasUrlPrefix()
Required. The URL prefix of the media location. This value is required for
a valid media location.
optional string url_prefix = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the urlPrefix field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public MediaLocation.Builder newBuilderForType()
protected MediaLocation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public MediaLocation.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides