com.google.ads.googleads.v17.resources.LicenseVerificationArtifact Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/resources/local_services_verification_artifact.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;
/**
*
* A proto holding information specific to a local services license.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.LicenseVerificationArtifact}
*/
public final class LicenseVerificationArtifact extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.LicenseVerificationArtifact)
LicenseVerificationArtifactOrBuilder {
private static final long serialVersionUID = 0L;
// Use LicenseVerificationArtifact.newBuilder() to construct.
private LicenseVerificationArtifact(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LicenseVerificationArtifact() {
licenseType_ = "";
licenseNumber_ = "";
licenseeFirstName_ = "";
licenseeLastName_ = "";
rejectionReason_ = 0;
expirationDateTime_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LicenseVerificationArtifact();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.LocalServicesVerificationArtifactProto.internal_static_google_ads_googleads_v17_resources_LicenseVerificationArtifact_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.LocalServicesVerificationArtifactProto.internal_static_google_ads_googleads_v17_resources_LicenseVerificationArtifact_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.LicenseVerificationArtifact.class, com.google.ads.googleads.v17.resources.LicenseVerificationArtifact.Builder.class);
}
private int bitField0_;
public static final int LICENSE_TYPE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object licenseType_ = "";
/**
*
* Output only. License type / name.
*
*
* optional string license_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the licenseType field is set.
*/
@java.lang.Override
public boolean hasLicenseType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. License type / name.
*
*
* optional string license_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The licenseType.
*/
@java.lang.Override
public java.lang.String getLicenseType() {
java.lang.Object ref = licenseType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
licenseType_ = s;
return s;
}
}
/**
*
* Output only. License type / name.
*
*
* optional string license_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for licenseType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLicenseTypeBytes() {
java.lang.Object ref = licenseType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
licenseType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LICENSE_NUMBER_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object licenseNumber_ = "";
/**
*
* Output only. License number.
*
*
* optional string license_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the licenseNumber field is set.
*/
@java.lang.Override
public boolean hasLicenseNumber() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. License number.
*
*
* optional string license_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The licenseNumber.
*/
@java.lang.Override
public java.lang.String getLicenseNumber() {
java.lang.Object ref = licenseNumber_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
licenseNumber_ = s;
return s;
}
}
/**
*
* Output only. License number.
*
*
* optional string license_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for licenseNumber.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLicenseNumberBytes() {
java.lang.Object ref = licenseNumber_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
licenseNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LICENSEE_FIRST_NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object licenseeFirstName_ = "";
/**
*
* Output only. First name of the licensee.
*
*
* optional string licensee_first_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the licenseeFirstName field is set.
*/
@java.lang.Override
public boolean hasLicenseeFirstName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. First name of the licensee.
*
*
* optional string licensee_first_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The licenseeFirstName.
*/
@java.lang.Override
public java.lang.String getLicenseeFirstName() {
java.lang.Object ref = licenseeFirstName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
licenseeFirstName_ = s;
return s;
}
}
/**
*
* Output only. First name of the licensee.
*
*
* optional string licensee_first_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for licenseeFirstName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLicenseeFirstNameBytes() {
java.lang.Object ref = licenseeFirstName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
licenseeFirstName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LICENSEE_LAST_NAME_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object licenseeLastName_ = "";
/**
*
* Output only. Last name of the licensee.
*
*
* optional string licensee_last_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the licenseeLastName field is set.
*/
@java.lang.Override
public boolean hasLicenseeLastName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. Last name of the licensee.
*
*
* optional string licensee_last_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The licenseeLastName.
*/
@java.lang.Override
public java.lang.String getLicenseeLastName() {
java.lang.Object ref = licenseeLastName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
licenseeLastName_ = s;
return s;
}
}
/**
*
* Output only. Last name of the licensee.
*
*
* optional string licensee_last_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for licenseeLastName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLicenseeLastNameBytes() {
java.lang.Object ref = licenseeLastName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
licenseeLastName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REJECTION_REASON_FIELD_NUMBER = 5;
private int rejectionReason_ = 0;
/**
*
* Output only. License rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the rejectionReason field is set.
*/
@java.lang.Override public boolean hasRejectionReason() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Output only. License rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for rejectionReason.
*/
@java.lang.Override public int getRejectionReasonValue() {
return rejectionReason_;
}
/**
*
* Output only. License rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The rejectionReason.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason getRejectionReason() {
com.google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason result = com.google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason.forNumber(rejectionReason_);
return result == null ? com.google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason.UNRECOGNIZED : result;
}
public static final int LICENSE_DOCUMENT_READONLY_FIELD_NUMBER = 6;
private com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly licenseDocumentReadonly_;
/**
*
* Output only. The readonly field containing the information for an uploaded
* license document.
*
*
* optional .google.ads.googleads.v17.common.LocalServicesDocumentReadOnly license_document_readonly = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the licenseDocumentReadonly field is set.
*/
@java.lang.Override
public boolean hasLicenseDocumentReadonly() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Output only. The readonly field containing the information for an uploaded
* license document.
*
*
* optional .google.ads.googleads.v17.common.LocalServicesDocumentReadOnly license_document_readonly = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The licenseDocumentReadonly.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly getLicenseDocumentReadonly() {
return licenseDocumentReadonly_ == null ? com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly.getDefaultInstance() : licenseDocumentReadonly_;
}
/**
*
* Output only. The readonly field containing the information for an uploaded
* license document.
*
*
* optional .google.ads.googleads.v17.common.LocalServicesDocumentReadOnly license_document_readonly = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnlyOrBuilder getLicenseDocumentReadonlyOrBuilder() {
return licenseDocumentReadonly_ == null ? com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly.getDefaultInstance() : licenseDocumentReadonly_;
}
public static final int EXPIRATION_DATE_TIME_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object expirationDateTime_ = "";
/**
*
* Output only. The timestamp when this license expires.
* The format is "YYYY-MM-DD HH:MM:SS" in the Google Ads account's timezone.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string expiration_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the expirationDateTime field is set.
*/
@java.lang.Override
public boolean hasExpirationDateTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Output only. The timestamp when this license expires.
* The format is "YYYY-MM-DD HH:MM:SS" in the Google Ads account's timezone.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string expiration_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The expirationDateTime.
*/
@java.lang.Override
public java.lang.String getExpirationDateTime() {
java.lang.Object ref = expirationDateTime_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
expirationDateTime_ = s;
return s;
}
}
/**
*
* Output only. The timestamp when this license expires.
* The format is "YYYY-MM-DD HH:MM:SS" in the Google Ads account's timezone.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string expiration_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for expirationDateTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExpirationDateTimeBytes() {
java.lang.Object ref = expirationDateTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
expirationDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, licenseType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, licenseNumber_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, licenseeFirstName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, licenseeLastName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeEnum(5, rejectionReason_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(6, getLicenseDocumentReadonly());
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, expirationDateTime_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, licenseType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, licenseNumber_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, licenseeFirstName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, licenseeLastName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, rejectionReason_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getLicenseDocumentReadonly());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, expirationDateTime_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.resources.LicenseVerificationArtifact)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.LicenseVerificationArtifact other = (com.google.ads.googleads.v17.resources.LicenseVerificationArtifact) obj;
if (hasLicenseType() != other.hasLicenseType()) return false;
if (hasLicenseType()) {
if (!getLicenseType()
.equals(other.getLicenseType())) return false;
}
if (hasLicenseNumber() != other.hasLicenseNumber()) return false;
if (hasLicenseNumber()) {
if (!getLicenseNumber()
.equals(other.getLicenseNumber())) return false;
}
if (hasLicenseeFirstName() != other.hasLicenseeFirstName()) return false;
if (hasLicenseeFirstName()) {
if (!getLicenseeFirstName()
.equals(other.getLicenseeFirstName())) return false;
}
if (hasLicenseeLastName() != other.hasLicenseeLastName()) return false;
if (hasLicenseeLastName()) {
if (!getLicenseeLastName()
.equals(other.getLicenseeLastName())) return false;
}
if (hasRejectionReason() != other.hasRejectionReason()) return false;
if (hasRejectionReason()) {
if (rejectionReason_ != other.rejectionReason_) return false;
}
if (hasLicenseDocumentReadonly() != other.hasLicenseDocumentReadonly()) return false;
if (hasLicenseDocumentReadonly()) {
if (!getLicenseDocumentReadonly()
.equals(other.getLicenseDocumentReadonly())) return false;
}
if (hasExpirationDateTime() != other.hasExpirationDateTime()) return false;
if (hasExpirationDateTime()) {
if (!getExpirationDateTime()
.equals(other.getExpirationDateTime())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasLicenseType()) {
hash = (37 * hash) + LICENSE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getLicenseType().hashCode();
}
if (hasLicenseNumber()) {
hash = (37 * hash) + LICENSE_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getLicenseNumber().hashCode();
}
if (hasLicenseeFirstName()) {
hash = (37 * hash) + LICENSEE_FIRST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getLicenseeFirstName().hashCode();
}
if (hasLicenseeLastName()) {
hash = (37 * hash) + LICENSEE_LAST_NAME_FIELD_NUMBER;
hash = (53 * hash) + getLicenseeLastName().hashCode();
}
if (hasRejectionReason()) {
hash = (37 * hash) + REJECTION_REASON_FIELD_NUMBER;
hash = (53 * hash) + rejectionReason_;
}
if (hasLicenseDocumentReadonly()) {
hash = (37 * hash) + LICENSE_DOCUMENT_READONLY_FIELD_NUMBER;
hash = (53 * hash) + getLicenseDocumentReadonly().hashCode();
}
if (hasExpirationDateTime()) {
hash = (37 * hash) + EXPIRATION_DATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getExpirationDateTime().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.LicenseVerificationArtifact parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.LicenseVerificationArtifact parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LicenseVerificationArtifact parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.LicenseVerificationArtifact parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LicenseVerificationArtifact parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.LicenseVerificationArtifact parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LicenseVerificationArtifact parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.LicenseVerificationArtifact parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LicenseVerificationArtifact parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.LicenseVerificationArtifact parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LicenseVerificationArtifact parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.LicenseVerificationArtifact parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.resources.LicenseVerificationArtifact prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A proto holding information specific to a local services license.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.LicenseVerificationArtifact}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.LicenseVerificationArtifact)
com.google.ads.googleads.v17.resources.LicenseVerificationArtifactOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.LocalServicesVerificationArtifactProto.internal_static_google_ads_googleads_v17_resources_LicenseVerificationArtifact_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.LocalServicesVerificationArtifactProto.internal_static_google_ads_googleads_v17_resources_LicenseVerificationArtifact_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.LicenseVerificationArtifact.class, com.google.ads.googleads.v17.resources.LicenseVerificationArtifact.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.LicenseVerificationArtifact.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLicenseDocumentReadonlyFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
licenseType_ = "";
licenseNumber_ = "";
licenseeFirstName_ = "";
licenseeLastName_ = "";
rejectionReason_ = 0;
licenseDocumentReadonly_ = null;
if (licenseDocumentReadonlyBuilder_ != null) {
licenseDocumentReadonlyBuilder_.dispose();
licenseDocumentReadonlyBuilder_ = null;
}
expirationDateTime_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.LocalServicesVerificationArtifactProto.internal_static_google_ads_googleads_v17_resources_LicenseVerificationArtifact_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.LicenseVerificationArtifact getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.LicenseVerificationArtifact.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.LicenseVerificationArtifact build() {
com.google.ads.googleads.v17.resources.LicenseVerificationArtifact result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.LicenseVerificationArtifact buildPartial() {
com.google.ads.googleads.v17.resources.LicenseVerificationArtifact result = new com.google.ads.googleads.v17.resources.LicenseVerificationArtifact(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.resources.LicenseVerificationArtifact result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.licenseType_ = licenseType_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.licenseNumber_ = licenseNumber_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.licenseeFirstName_ = licenseeFirstName_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.licenseeLastName_ = licenseeLastName_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.rejectionReason_ = rejectionReason_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.licenseDocumentReadonly_ = licenseDocumentReadonlyBuilder_ == null
? licenseDocumentReadonly_
: licenseDocumentReadonlyBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.expirationDateTime_ = expirationDateTime_;
to_bitField0_ |= 0x00000040;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.resources.LicenseVerificationArtifact) {
return mergeFrom((com.google.ads.googleads.v17.resources.LicenseVerificationArtifact)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.LicenseVerificationArtifact other) {
if (other == com.google.ads.googleads.v17.resources.LicenseVerificationArtifact.getDefaultInstance()) return this;
if (other.hasLicenseType()) {
licenseType_ = other.licenseType_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasLicenseNumber()) {
licenseNumber_ = other.licenseNumber_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasLicenseeFirstName()) {
licenseeFirstName_ = other.licenseeFirstName_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasLicenseeLastName()) {
licenseeLastName_ = other.licenseeLastName_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasRejectionReason()) {
setRejectionReason(other.getRejectionReason());
}
if (other.hasLicenseDocumentReadonly()) {
mergeLicenseDocumentReadonly(other.getLicenseDocumentReadonly());
}
if (other.hasExpirationDateTime()) {
expirationDateTime_ = other.expirationDateTime_;
bitField0_ |= 0x00000040;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
licenseType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
licenseNumber_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
licenseeFirstName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
licenseeLastName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
rejectionReason_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
input.readMessage(
getLicenseDocumentReadonlyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
expirationDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object licenseType_ = "";
/**
*
* Output only. License type / name.
*
*
* optional string license_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the licenseType field is set.
*/
public boolean hasLicenseType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. License type / name.
*
*
* optional string license_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The licenseType.
*/
public java.lang.String getLicenseType() {
java.lang.Object ref = licenseType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
licenseType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. License type / name.
*
*
* optional string license_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for licenseType.
*/
public com.google.protobuf.ByteString
getLicenseTypeBytes() {
java.lang.Object ref = licenseType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
licenseType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. License type / name.
*
*
* optional string license_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The licenseType to set.
* @return This builder for chaining.
*/
public Builder setLicenseType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
licenseType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. License type / name.
*
*
* optional string license_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearLicenseType() {
licenseType_ = getDefaultInstance().getLicenseType();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Output only. License type / name.
*
*
* optional string license_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for licenseType to set.
* @return This builder for chaining.
*/
public Builder setLicenseTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
licenseType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object licenseNumber_ = "";
/**
*
* Output only. License number.
*
*
* optional string license_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the licenseNumber field is set.
*/
public boolean hasLicenseNumber() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Output only. License number.
*
*
* optional string license_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The licenseNumber.
*/
public java.lang.String getLicenseNumber() {
java.lang.Object ref = licenseNumber_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
licenseNumber_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. License number.
*
*
* optional string license_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for licenseNumber.
*/
public com.google.protobuf.ByteString
getLicenseNumberBytes() {
java.lang.Object ref = licenseNumber_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
licenseNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. License number.
*
*
* optional string license_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The licenseNumber to set.
* @return This builder for chaining.
*/
public Builder setLicenseNumber(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
licenseNumber_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. License number.
*
*
* optional string license_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearLicenseNumber() {
licenseNumber_ = getDefaultInstance().getLicenseNumber();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Output only. License number.
*
*
* optional string license_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for licenseNumber to set.
* @return This builder for chaining.
*/
public Builder setLicenseNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
licenseNumber_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object licenseeFirstName_ = "";
/**
*
* Output only. First name of the licensee.
*
*
* optional string licensee_first_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the licenseeFirstName field is set.
*/
public boolean hasLicenseeFirstName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Output only. First name of the licensee.
*
*
* optional string licensee_first_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The licenseeFirstName.
*/
public java.lang.String getLicenseeFirstName() {
java.lang.Object ref = licenseeFirstName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
licenseeFirstName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. First name of the licensee.
*
*
* optional string licensee_first_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for licenseeFirstName.
*/
public com.google.protobuf.ByteString
getLicenseeFirstNameBytes() {
java.lang.Object ref = licenseeFirstName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
licenseeFirstName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. First name of the licensee.
*
*
* optional string licensee_first_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The licenseeFirstName to set.
* @return This builder for chaining.
*/
public Builder setLicenseeFirstName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
licenseeFirstName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. First name of the licensee.
*
*
* optional string licensee_first_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearLicenseeFirstName() {
licenseeFirstName_ = getDefaultInstance().getLicenseeFirstName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Output only. First name of the licensee.
*
*
* optional string licensee_first_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for licenseeFirstName to set.
* @return This builder for chaining.
*/
public Builder setLicenseeFirstNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
licenseeFirstName_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object licenseeLastName_ = "";
/**
*
* Output only. Last name of the licensee.
*
*
* optional string licensee_last_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the licenseeLastName field is set.
*/
public boolean hasLicenseeLastName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Output only. Last name of the licensee.
*
*
* optional string licensee_last_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The licenseeLastName.
*/
public java.lang.String getLicenseeLastName() {
java.lang.Object ref = licenseeLastName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
licenseeLastName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. Last name of the licensee.
*
*
* optional string licensee_last_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for licenseeLastName.
*/
public com.google.protobuf.ByteString
getLicenseeLastNameBytes() {
java.lang.Object ref = licenseeLastName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
licenseeLastName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. Last name of the licensee.
*
*
* optional string licensee_last_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The licenseeLastName to set.
* @return This builder for chaining.
*/
public Builder setLicenseeLastName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
licenseeLastName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. Last name of the licensee.
*
*
* optional string licensee_last_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearLicenseeLastName() {
licenseeLastName_ = getDefaultInstance().getLicenseeLastName();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Output only. Last name of the licensee.
*
*
* optional string licensee_last_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for licenseeLastName to set.
* @return This builder for chaining.
*/
public Builder setLicenseeLastNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
licenseeLastName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private int rejectionReason_ = 0;
/**
*
* Output only. License rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the rejectionReason field is set.
*/
@java.lang.Override public boolean hasRejectionReason() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Output only. License rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for rejectionReason.
*/
@java.lang.Override public int getRejectionReasonValue() {
return rejectionReason_;
}
/**
*
* Output only. License rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for rejectionReason to set.
* @return This builder for chaining.
*/
public Builder setRejectionReasonValue(int value) {
rejectionReason_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Output only. License rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The rejectionReason.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason getRejectionReason() {
com.google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason result = com.google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason.forNumber(rejectionReason_);
return result == null ? com.google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason.UNRECOGNIZED : result;
}
/**
*
* Output only. License rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The rejectionReason to set.
* @return This builder for chaining.
*/
public Builder setRejectionReason(com.google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
rejectionReason_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. License rejection reason.
*
*
* optional .google.ads.googleads.v17.enums.LocalServicesLicenseRejectionReasonEnum.LocalServicesLicenseRejectionReason rejection_reason = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearRejectionReason() {
bitField0_ = (bitField0_ & ~0x00000010);
rejectionReason_ = 0;
onChanged();
return this;
}
private com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly licenseDocumentReadonly_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly, com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly.Builder, com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnlyOrBuilder> licenseDocumentReadonlyBuilder_;
/**
*
* Output only. The readonly field containing the information for an uploaded
* license document.
*
*
* optional .google.ads.googleads.v17.common.LocalServicesDocumentReadOnly license_document_readonly = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the licenseDocumentReadonly field is set.
*/
public boolean hasLicenseDocumentReadonly() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Output only. The readonly field containing the information for an uploaded
* license document.
*
*
* optional .google.ads.googleads.v17.common.LocalServicesDocumentReadOnly license_document_readonly = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The licenseDocumentReadonly.
*/
public com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly getLicenseDocumentReadonly() {
if (licenseDocumentReadonlyBuilder_ == null) {
return licenseDocumentReadonly_ == null ? com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly.getDefaultInstance() : licenseDocumentReadonly_;
} else {
return licenseDocumentReadonlyBuilder_.getMessage();
}
}
/**
*
* Output only. The readonly field containing the information for an uploaded
* license document.
*
*
* optional .google.ads.googleads.v17.common.LocalServicesDocumentReadOnly license_document_readonly = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setLicenseDocumentReadonly(com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly value) {
if (licenseDocumentReadonlyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
licenseDocumentReadonly_ = value;
} else {
licenseDocumentReadonlyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Output only. The readonly field containing the information for an uploaded
* license document.
*
*
* optional .google.ads.googleads.v17.common.LocalServicesDocumentReadOnly license_document_readonly = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setLicenseDocumentReadonly(
com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly.Builder builderForValue) {
if (licenseDocumentReadonlyBuilder_ == null) {
licenseDocumentReadonly_ = builderForValue.build();
} else {
licenseDocumentReadonlyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Output only. The readonly field containing the information for an uploaded
* license document.
*
*
* optional .google.ads.googleads.v17.common.LocalServicesDocumentReadOnly license_document_readonly = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder mergeLicenseDocumentReadonly(com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly value) {
if (licenseDocumentReadonlyBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
licenseDocumentReadonly_ != null &&
licenseDocumentReadonly_ != com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly.getDefaultInstance()) {
getLicenseDocumentReadonlyBuilder().mergeFrom(value);
} else {
licenseDocumentReadonly_ = value;
}
} else {
licenseDocumentReadonlyBuilder_.mergeFrom(value);
}
if (licenseDocumentReadonly_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* Output only. The readonly field containing the information for an uploaded
* license document.
*
*
* optional .google.ads.googleads.v17.common.LocalServicesDocumentReadOnly license_document_readonly = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearLicenseDocumentReadonly() {
bitField0_ = (bitField0_ & ~0x00000020);
licenseDocumentReadonly_ = null;
if (licenseDocumentReadonlyBuilder_ != null) {
licenseDocumentReadonlyBuilder_.dispose();
licenseDocumentReadonlyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Output only. The readonly field containing the information for an uploaded
* license document.
*
*
* optional .google.ads.googleads.v17.common.LocalServicesDocumentReadOnly license_document_readonly = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly.Builder getLicenseDocumentReadonlyBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getLicenseDocumentReadonlyFieldBuilder().getBuilder();
}
/**
*
* Output only. The readonly field containing the information for an uploaded
* license document.
*
*
* optional .google.ads.googleads.v17.common.LocalServicesDocumentReadOnly license_document_readonly = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnlyOrBuilder getLicenseDocumentReadonlyOrBuilder() {
if (licenseDocumentReadonlyBuilder_ != null) {
return licenseDocumentReadonlyBuilder_.getMessageOrBuilder();
} else {
return licenseDocumentReadonly_ == null ?
com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly.getDefaultInstance() : licenseDocumentReadonly_;
}
}
/**
*
* Output only. The readonly field containing the information for an uploaded
* license document.
*
*
* optional .google.ads.googleads.v17.common.LocalServicesDocumentReadOnly license_document_readonly = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly, com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly.Builder, com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnlyOrBuilder>
getLicenseDocumentReadonlyFieldBuilder() {
if (licenseDocumentReadonlyBuilder_ == null) {
licenseDocumentReadonlyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly, com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnly.Builder, com.google.ads.googleads.v17.common.LocalServicesDocumentReadOnlyOrBuilder>(
getLicenseDocumentReadonly(),
getParentForChildren(),
isClean());
licenseDocumentReadonly_ = null;
}
return licenseDocumentReadonlyBuilder_;
}
private java.lang.Object expirationDateTime_ = "";
/**
*
* Output only. The timestamp when this license expires.
* The format is "YYYY-MM-DD HH:MM:SS" in the Google Ads account's timezone.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string expiration_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the expirationDateTime field is set.
*/
public boolean hasExpirationDateTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Output only. The timestamp when this license expires.
* The format is "YYYY-MM-DD HH:MM:SS" in the Google Ads account's timezone.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string expiration_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The expirationDateTime.
*/
public java.lang.String getExpirationDateTime() {
java.lang.Object ref = expirationDateTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
expirationDateTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The timestamp when this license expires.
* The format is "YYYY-MM-DD HH:MM:SS" in the Google Ads account's timezone.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string expiration_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for expirationDateTime.
*/
public com.google.protobuf.ByteString
getExpirationDateTimeBytes() {
java.lang.Object ref = expirationDateTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
expirationDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The timestamp when this license expires.
* The format is "YYYY-MM-DD HH:MM:SS" in the Google Ads account's timezone.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string expiration_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The expirationDateTime to set.
* @return This builder for chaining.
*/
public Builder setExpirationDateTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
expirationDateTime_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Output only. The timestamp when this license expires.
* The format is "YYYY-MM-DD HH:MM:SS" in the Google Ads account's timezone.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string expiration_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearExpirationDateTime() {
expirationDateTime_ = getDefaultInstance().getExpirationDateTime();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* Output only. The timestamp when this license expires.
* The format is "YYYY-MM-DD HH:MM:SS" in the Google Ads account's timezone.
* Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
*
*
* optional string expiration_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for expirationDateTime to set.
* @return This builder for chaining.
*/
public Builder setExpirationDateTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
expirationDateTime_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.resources.LicenseVerificationArtifact)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.LicenseVerificationArtifact)
private static final com.google.ads.googleads.v17.resources.LicenseVerificationArtifact DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.LicenseVerificationArtifact();
}
public static com.google.ads.googleads.v17.resources.LicenseVerificationArtifact getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LicenseVerificationArtifact parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.LicenseVerificationArtifact getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy