/** * * * <pre> * The type of job. * </pre> * * <code>.google.privacy.dlp.v2.DlpJobType type = 2;</code> */ public com.google.privacy.dlp.v2.DlpJobType getType() { @SuppressWarnings("deprecation") com.google.privacy.dlp.v2.DlpJobType result = com.google.privacy.dlp.v2.DlpJobType.valueOf(type_); return result == null ? com.google.privacy.dlp.v2.DlpJobType.UNRECOGNIZED : result; }
/** @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DlpJobType valueOf(int value) { return forNumber(value); }
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); }
/** * * * <pre> * The type of job. * </pre> * * <code>.google.privacy.dlp.v2.DlpJobType type = 2;</code> */ public Builder setType(com.google.privacy.dlp.v2.DlpJobType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /**
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); }
/** * * * <pre> * The type of job. Defaults to `DlpJobType.INSPECT` * </pre> * * <code>.google.privacy.dlp.v2.DlpJobType type = 5;</code> */ public Builder setType(com.google.privacy.dlp.v2.DlpJobType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /**
public static DlpJobType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; }
/** * * * <pre> * The type of job. Defaults to `DlpJobType.INSPECT` * </pre> * * <code>.google.privacy.dlp.v2.DlpJobType type = 5;</code> */ public com.google.privacy.dlp.v2.DlpJobType getType() { @SuppressWarnings("deprecation") com.google.privacy.dlp.v2.DlpJobType result = com.google.privacy.dlp.v2.DlpJobType.valueOf(type_); return result == null ? com.google.privacy.dlp.v2.DlpJobType.UNRECOGNIZED : result; } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getFilterBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } if (!getPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); } if (type_ != com.google.privacy.dlp.v2.DlpJobType.DLP_JOB_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(5, type_); } if (!getOrderByBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, orderBy_); } unknownFields.writeTo(output); }
/** * * * <pre> * The type of job. * </pre> * * <code>.google.privacy.dlp.v2.DlpJobType type = 2;</code> */ public com.google.privacy.dlp.v2.DlpJobType getType() { @SuppressWarnings("deprecation") com.google.privacy.dlp.v2.DlpJobType result = com.google.privacy.dlp.v2.DlpJobType.valueOf(type_); return result == null ? com.google.privacy.dlp.v2.DlpJobType.UNRECOGNIZED : result; } /**
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getFilterBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (!getParentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); } if (type_ != com.google.privacy.dlp.v2.DlpJobType.DLP_JOB_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_); } if (!getOrderByBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * * * <pre> * The type of job. Defaults to `DlpJobType.INSPECT` * </pre> * * <code>.google.privacy.dlp.v2.DlpJobType type = 5;</code> */ public com.google.privacy.dlp.v2.DlpJobType getType() { @SuppressWarnings("deprecation") com.google.privacy.dlp.v2.DlpJobType result = com.google.privacy.dlp.v2.DlpJobType.valueOf(type_); return result == null ? com.google.privacy.dlp.v2.DlpJobType.UNRECOGNIZED : result; }
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); if (type_ != com.google.privacy.dlp.v2.DlpJobType.DLP_JOB_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_);
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); if (type_ != com.google.privacy.dlp.v2.DlpJobType.DLP_JOB_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_);